Opencv_contrib: AttributeError: 'module' object has no attribute 'MultiTracker_create'

Created on 11 Jul 2017  路  4Comments  路  Source: opencv/opencv_contrib

Hello,
Single Tracker worked just fine but
the multi tracker
tracker = cv2.MultiTracker_create()
`
gave me error:-

AttributeError: 'module' object has no attribute 'MultiTracker_create'

Can you please help?

question (invalid tracker)

Most helpful comment

My open cv version - 3.3.1 the function not existing, how this thread closed

All 4 comments

Check your version. You may be using opencv 3.2. the MultiTracker_create class appears to be present in the master version (3.3 I think - as at the time of writing). There is a sample file in version 3.2 that perhaps has the code sample you're looking for.

https://github.com/opencv/opencv_contrib/blob/3.2.0/modules/tracking/samples/multitracker.py

Check your opencv version using the shell command "opencv_version"

My open cv version - 3.3.1 the function not existing, how this thread closed

@Sodininkas did you solved this issue? and how if you did?

cv.__version__ = '4.1.0'

tracker = cv2.MultiTracker_create()


AttributeError Traceback (most recent call last)
in
1 cv2.namedWindow("tracking")
2 camera = cv2.VideoCapture ('08.00.mp4')
----> 3 tracker = cv2.MultiTracker_create()

AttributeError: module 'cv2.cv2' has no attribute 'MultiTracker_create'

Was this page helpful?
0 / 5 - 0 ratings