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)
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'
Most helpful comment
My open cv version - 3.3.1 the function not existing, how this thread closed