cv2.Tracker.init()

this is simply wrong code. you have to call the init() method on the object instance, not on the class (like a static method), so instead it must be:

tracking.init(img, bbox)
1 Like