Difference between revisions of "Bee counter software"
Line 23: | Line 23: | ||
#When the track ends, increment the In or out counter depending on where the track ends. | #When the track ends, increment the In or out counter depending on where the track ends. | ||
− | + | <table border=1> | |
− | 1 | + | <th>Hivetool</th> |
− | 2 | + | <tr bgcolor="Brown"><td>1 bee</td><td>Brown</td></tr> |
− | 3 | + | <tr bgcolor="Red"><td>2 bees</td><td>Red</td></tr> |
− | 4 | + | <tr bgcolor="orange"><td>3 bees</td><td>Orange</td></tr> |
− | 5 | + | <tr bgcolor="yellow"><td>4 bees</td><td>Yellow</td></tr> |
− | 6 | + | <tr bgcolor="green"><td>5 bees</td><td>Green</td></tr> |
− | 7 | + | <tr bgcolor="blue"><td>6 bees</td><td>Blue</td></tr> |
+ | <tr bgcolor="violet"><td>7 bees</td><td>Violet</td></tr> | ||
+ | </table> |
Revision as of 05:11, 19 March 2015
beeTrack1 is a c++ program using openCV libraries. Here is an example of it processing video:
http://hivetool.org/counter/beeTrack1_1.mp4
Processing steps for each frame:
- Convert image to grey scale.
- Threshold based on grey value.
- Filter to smooth the noise.
- Draw a color contour around each object where the color is based on area.
- Calculate area of each object and color code it based on size
- Check each track to see if it falls within a contour of an object.
- If so, append the center coordinates of the object to the track. If not, start a new track.
- When the track ends, increment the In or out counter depending on where the track ends.
Hivetool | |
---|---|
1 bee | Brown |
2 bees | Red |
3 bees | Orange |
4 bees | Yellow |
5 bees | Green |
6 bees | Blue |
7 bees | Violet |