I'm working on a fly counter, same goals but not same insect! I made a system with IR LED/phototransistor, QTR8 sensor from polulu, https://www.pololu.com/product/961
. The mechanism is really similar to this project : http://www.instructables.com/id/Honey-Bee-Counter-II/
It is compose of 2 set of 4 QTR8 sensor so 36 IR LED/phototransistor. The difference is from the sensor I use.
It's actually in test but for the moment the result are not really useful... If you want more information about, let me now and I will explain it.
I want to test other technology and your approach is really interesting, I'd test the program made by Guyver https://github.com/guyver2/beehive/blob/master/bees.py
and the result is really encouraging. Some fly were not detect but it seems to be the fps which are to low (30fps...).
So, I have some interrogation about it :
- Some of you (elriri35 , Guyver) have test this program in realtime, did the result were interesting? My objective is to use this system in realtime too so did you have a repo where I can look at your prog ?
- I want to reduce the time of the process, I have convert my video in 640x480 and in grayscale before the process. Is there something else that I can do?
- Here is a screenshot of the video where you can see the fly and the entrance of the box. I've made some change on the parameters from OpenCV but I'm not an expert. Did you have some advice?
For now I have just change the "inertia ratio".
Thanks a lot and I hope that someone is stil on the project