Skip to content

slice indices must be integers #18

Description

@OliverGuo

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions