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

Tracking is not working #11

Closed Orshabal closed 3 years ago

Orshabal commented 3 years ago

Hello,

I'm running the code but the tracking is not working even with the video attached to the zip file. It seems to follow the bright spots but rarely the rat as you can see in the video.

https://user-images.githubusercontent.com/20100100/121676121-a657c680-ca8a-11eb-8239-78c97a7107bb.mp4

I've tried to play with the threshold but without success. Any suggestions?

Thank you a lot for your effort!

eggplants commented 3 years ago

Same

LucasBei commented 3 years ago

Try to fix the threshold in column 11 and 12: THRESHOLD_WALL_VS_FLOOR = 80 THRESHOLD_ANIMAL_VS_FLOOR = 110 (This makes better results for me)

colinlaney commented 3 years ago

@LucasBei, actually threshold has to be adaptive. But since it is not at the moment, everyone fix the threshold regarding her lighting, like you.