KCFpy icon indicating copy to clipboard operation
KCFpy copied to clipboard

slice indices must be integers

Open OliverGuo opened this issue 4 years ago • 0 comments

Traceback (most recent call last): File "/Users/guomuqi/Downloads/KCFpy-master/run.py", line 75, in tracker.init([ix,iy,w,h], frame) File "/Users/guomuqi/Downloads/KCFpy-master/kcftracker.py", line 274, in init self.train(self.tmpl, 1.0) File "/Users/guomuqi/Downloads/KCFpy-master/kcftracker.py", line 261, in train k = self.gaussianCorrelation(x, x) File "/Users/guomuqi/Downloads/KCFpy-master/kcftracker.py", line 171, in gaussianCorrelation c = rearrange(c) File "/Users/guomuqi/Downloads/KCFpy-master/kcftracker.py", line 38, in rearrange img[0:yh,0:xh], img_[yh:img.shape[0],xh:img.shape[1]] = img[yh:img.shape[0],xh:img.shape[1]], img[0:yh,0:xh] TypeError: slice indices must be integers or None or have an index method

Did anyone else run into this problem?

OliverGuo avatar Jun 30 '21 04:06 OliverGuo