You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building OpenCV Python wheel from source, the cv2 module seems to be missing its expected methods. When inspecting the module methods using dir(cv2), only the default Python module methods are returned.
Steps to Reproduce:
Built the OpenCV Python wheel using the following Dockerfile:
Expected Behavior:
The cv2 module should have its usual methods available.
Actual Behavior:
Only the default Python module methods were returned: ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
Additional Question:
I want to ensure that OpenCV is built with support for the avc1 codec and that no additional installations are required on the target system. I believe that adding the flags -D BUILD_SHARED_LIBS=OFF -D WITH_FFMPEG=ON will statically link the required libraries. Can you confirm or provide corrections if I'm mistaken?
The text was updated successfully, but these errors were encountered:
It looks like the described behavior caused by the /opencv/opencv-python/cv2 folder. Python treats it as a cv2 package if python is runing in WORKDIR /opencv/opencv-python
After building OpenCV Python wheel from source, the
cv2
module seems to be missing its expected methods. When inspecting the module methods usingdir(cv2)
, only the default Python module methods are returned.Steps to Reproduce:
Expected Behavior:
The
cv2
module should have its usual methods available.Actual Behavior:
Only the default Python module methods were returned:
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
Additional Question:
I want to ensure that OpenCV is built with support for the
avc1
codec and that no additional installations are required on the target system. I believe that adding the flags-D BUILD_SHARED_LIBS=OFF -D WITH_FFMPEG=ON
will statically link the required libraries. Can you confirm or provide corrections if I'm mistaken?The text was updated successfully, but these errors were encountered: