Skip to content

Commit

Permalink
KCFpython
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxing001 committed May 25, 2018
1 parent 660dbd5 commit 7766a59
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 2 deletions.
12 changes: 12 additions & 0 deletions KCFpy-master/.idea/KCFpy-master.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions KCFpy-master/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions KCFpy-master/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

284 changes: 284 additions & 0 deletions KCFpy-master/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added KCFpy-master/__pycache__/fhog.cpython-36.pyc
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion KCFpy-master/kcftracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def createGaussianPeak(self, sizey, sizex):
def gaussianCorrelation(self, x1, x2):
if(self._hogfeatures):
c = np.zeros((self.size_patch[0], self.size_patch[1]), np.float32)
for i in xrange(self.size_patch[2]):
for i in range(self.size_patch[2]):
x1aux = x1[i, :].reshape((self.size_patch[0], self.size_patch[1]))
x2aux = x2[i, :].reshape((self.size_patch[0], self.size_patch[1]))
caux = cv2.mulSpectrums(fftd(x1aux), fftd(x2aux), 0, conjB = True)
Expand Down
3 changes: 2 additions & 1 deletion KCFpy-master/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def draw_boundingbox(event, x, y, flags, param):
inteval = 30
else: assert(0), "too many arguments"

tracker = kcftracker.KCFTracker(True, True, True) # hog, fixed_window, multiscale
tracker = kcftracker.KCFTracker(True, True, True)
# hog, fixed_window, multiscale
#if you use hog feature, there will be a short pause after you draw a first boundingbox, that is due to the use of Numba.

cv2.namedWindow('tracking')
Expand Down

0 comments on commit 7766a59

Please sign in to comment.