uoip / KCFpy

Python implementation of KCF tracking algorithm
MIT License
399 stars 124 forks source link

TypeError: 'map' object is not subscriptable #7

Open StormArcher opened 5 years ago

StormArcher commented 5 years ago

Traceback (most recent call last): File "run.py", line 75, in tracker.init([ix,iy,w,h], frame) File "/home/hp/zjc/nk_PyCharm/PyCharm_project/nk_KCF/3_uoip-KCFpy /KCFpy/kcftracker.py", line 269, in init self._tmpl = self.getFeatures(image, 1) File "/home/hp/zjc/nk_PyCharm/PyCharm_project/nk_KCF/3_uoip-KCFpy /KCFpy/kcftracker.py", line 185, in getFeatures cx = self._roi[0] + self._roi[2]/2 #float TypeError: 'map' object is not subscriptable

StormArcher commented 5 years ago

ithink it version problem ,i use python 3