YOLOv3-KCF-Fast-Object-Tracker icon indicating copy to clipboard operation
YOLOv3-KCF-Fast-Object-Tracker copied to clipboard

module 'cv2' has no attribute 'TrackerKCF_create'

Open fatbringer opened this issue 3 years ago • 1 comments

Hello again. I have tried running the track.py, but this is what i got

Traceback (most recent call last):
  File "tracker.py", line 25, in <module>
    tracker=cv2.TrackerKCF_create()
AttributeError: module 'cv2' has no attribute 'TrackerKCF_create

I have searchd online and some people have mentioned it is because of opencv-python and opencv-contrib-python errors. For instance in these links:

  • https://github.com/opencv/opencv/issues/15723 But to no avail. Do you have any ideas on how to work around ?

fatbringer avatar Jan 19 '22 07:01 fatbringer

cv2.TrackerKCF_create() API is in the opencv-contrib-python, try to use pip install to solve it.

Lum1104 avatar Nov 27 '22 06:11 Lum1104