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

pyramid strategy fails for sparse optical flow #78

Open
ahsteven opened this issue Jun 30, 2023 · 0 comments
Open

pyramid strategy fails for sparse optical flow #78

ahsteven opened this issue Jun 30, 2023 · 0 comments

Comments

@ahsteven
Copy link

I am running the tracker on several videos. However sometimes the gmc sparse optical flow fails. I get this error:

File BoTSORT/tracker/gmc.py", line 72, in apply
return self.applySparseOptFlow(raw_frame, detections)
File "BoTSORT/tracker/gmc.py", line 268, in applySparseOptFlow
matchedKeypoints, status, err = cv2.calcOpticalFlowPyrLK(self.prevFrame, frame, self.prevKeyPoints, None)
cv2.error: OpenCV(4.7.0) /io/opencv/modules/video/src/lkpyramid.cpp:1394: error: (-215:Assertion failed) prevPyr[level * lvlStep1].size() == nextPyr[level * lvlStep2].size() in function 'calc'

The video input size was 1080,1920,3

if I cannot use sparse optical flow what other setting do you recommend for gmc? 'orb', 'ecc', 'sift'?

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