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

Empty rectangle crashes when assigning #1

Open
hobbitsyfeet opened this issue Aug 26, 2020 · 1 comment
Open

Empty rectangle crashes when assigning #1

hobbitsyfeet opened this issue Aug 26, 2020 · 1 comment
Labels
bug Something isn't working Testing Needed

Comments

@hobbitsyfeet
Copy link
Owner

To reproduce issue:

  1. add tab
  2. draw square
  3. click on information window
  4. click on video window
  5. space bar
    ERROR:
    Exception has occurred: error
    OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\core\src\dxt.cpp:3335: error: (-215:Assertion failed) type == CV_32FC1 || type == CV_32FC2 || type == CV_64FC1 || type == CV_64FC2 in function 'cv::dft'
    File "C:\Users\legom\Documents\GitHub\PeopleTracker\src\multitracker.py", line 170, in assign
    self.tracker.init(frame, self.init_bounding_box)
    File "C:\Users\legom\Documents\GitHub\PeopleTracker\src\multitracker.py", line 822, in
    tracker_list[selected_tracker].assign(frame, trackerName)

Suspected behaviour:
When this is happening, it reads that there is no rectangle created to track, so it tries to create a tracker on a (0x0) rectangle, and crashes.

@hobbitsyfeet hobbitsyfeet added the bug Something isn't working label Aug 26, 2020
@hobbitsyfeet
Copy link
Owner Author

The bounding box failing to be set re-enables the UI and prompts to try again.

Further investigation needs to happen to see if this fixes a related issue where tabs remain disabled.

hobbitsyfeet added a commit that referenced this issue Sep 21, 2020
Fixes issue: #10
- Now accumulates time and does not subtract it.

Fixes issue: #1
- bounding box failing to be set re-enables the UI and prompts to try again

Further investigation needs to happen to see if this fixes related issue where tabs remain disabled.
@hobbitsyfeet hobbitsyfeet pinned this issue Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Testing Needed
Projects
None yet
Development

No branches or pull requests

1 participant