Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice indices must be integers #18

Open
OliverGuo opened this issue Jun 30, 2021 · 0 comments
Open

slice indices must be integers #18

OliverGuo opened this issue Jun 30, 2021 · 0 comments

Comments

@OliverGuo
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant