Description
Expected behaviour
Expected this code to return a multi tracker object:
import cv2
cv2.MultiTracker_create()
Actual behaviour
Throws the error:
AttributeError: module 'cv2.cv2' has no attribute 'MultiTracker_create'
Steps to reproduce
I installed the latest wheel of cv2 on a win10 x64 machine using pip in a venv (pip install opencv-contrib-python
)
cv2.getVersionString()
returns '4.5.1'
I can then import cv2
successfully in the python console, however cv2.MultiTracker_create()
throws an error.
I completely uninstalled cv2 and installed again except with different version: pip install opencv-contrib-python~= 3.4.4.19
Since the function reportedly works in this version in a StackOverflow answer here
Once installed, the code runs successfully. So I assume it's a problem with this specific build of cv2 (i.e. version 4.5.1)
In the toolchain you have created, how do you select or deselect the modules that are installed form the C files? Is there a way that I can manually reinclude MultiTracker_create() back into my build, since don't have the expertise to build my own wheel. No worries if not, I'm just wondering why MultiTracker_create() was in an earlier build and not the most recent.
Thanks.
Issue submission checklist
- This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
- I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
- The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- I'm using the latest version of
opencv-python