Difference between revisions of "Bee counter software"

From HiveTool
Jump to: navigation, search
Line 1: Line 1:
 
[[File:BeeTrack1_1a.png|thumb|right|450px|beeTrack1]]  
 
[[File:BeeTrack1_1a.png|thumb|right|450px|beeTrack1]]  
 +
[[File:BeeTrack1_1f.png|thumb|right|450px|Threshold image.]]
 +
[[File:BeeTrack1_1g.png|thumb|right|450px|Filtered (smothed) threshold image.]]
 +
 
[[File:BeeTrack1_1b.png|thumb|right|450px|Show contours]]  
 
[[File:BeeTrack1_1b.png|thumb|right|450px|Show contours]]  
 
[[File:BeeTrack1_1c.png|thumb|right|450px|Show contours and tracks.]]  
 
[[File:BeeTrack1_1c.png|thumb|right|450px|Show contours and tracks.]]  

Revision as of 01:29, 19 March 2015

beeTrack1
Threshold image.
Filtered (smothed) threshold image.
Show contours
Show contours and tracks.
Same but input image is off
White track has terminated in green area and will count as out


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:

  1. Convert image to grey scale.
  2. Threshold based on grey value.
  3. Filter to smoth the noise.
  4. Draw a contour around each object.
  5. Calculate area of each object and color code it based on size
  6. Check each track to see if it falls within a contour fo an object.
  7. If so, append the center coordinates of the object to the track. If not, start a new track.
  8. When the track ends, increment the In or out counter depending on where the track ends.


1 brown 2 red 3 orange 4 yellow 5 green 6 blue 7 vilot