Closed imr555 closed 5 years ago
@imr555, please pull new version.
pip install -r requirements.txt
.cv2.waitKey()
and cv2.destroyWindow()
. It was okay on Windows but not on Mac OS X or Linux.The previous issues are resolved. But theres a new error that has come up. After running the code twice each time at 120 sec, the program auto exits and this error shows up
Traceback (most recent call last):
File "track.py", line 255, in <module>
trace(filename)
File "track.py", line 180, in trace
x = int(M['m10']/M['m00'])
ZeroDivisionError: float division by zero
Yes, it's fixed too in c560eb0.
After pulling the latest version and running the code on the sample I came across this error
Adding
_,
and a space before line 91, like this_, contours, hierarchy = cv2.findContours(mask, cv2.RETR_LIST,
cv2.CHAIN_APPROX_SIMPLE)`I achieve another error sadly.This error comes after drawing a box around the rat,
Segmentation fault (core dumped)