colinlaney / animal-tracking

Object tracking with OpenCV in open field behavioral test (overhead view maze)
https://youtu.be/GebcshN4OdE
Creative Commons Zero v1.0 Universal
50 stars 23 forks source link

ValueError: need more than 2 values to unpack #4

Closed ghost closed 5 years ago

ghost commented 5 years ago

import track.py

Traceback (most recent call last): File "", line 1, in File "track.py", line 252, in floorCrop(filename) File "track.py", line 91, in floorCrop _, contours, hierarchy = cv2.findContours(mask, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) ValueError: need more than 2 values to unpack

I'm testing the module with your rat.avi video. But I get value error. How to fix the error?

colinlaney commented 5 years ago

@philosophus23, please pull new version.

And note that track.py is standalone "app", not a module. Better use it as python track.py.