Open StormArcher opened 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
ithink it version problem ,i use python 3
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