How can I detect direction and number of objects using Emgu?
How can I detect direction and number of objects using Emgu? Objects are moving in all directions (2D); and a camera is seeing these objects (on a 2D surface). Object may have little differences in shape but are similar enough. Thanks Invoke cvAbsDiff on successive frames (may be on each n -th and (n - gap) -th frame) to detect changes and use thresholding in order to get a changes mask For each frame call cvUpdateMotionHistory and pass obtained mask as an argument To get motion segments (objects) and their orientation: call cvCalcMotionGradient passing motion history accumulated by previous