Since I do not know Emgu CV, I would recommend OpenCV. I would suggest you use Lucas Canada tracking (optical stream). You track objects by following these steps:
- Read the image from the source (webcam / video file, etc.).
- Pretreatment (optional, but can be proven)
- Extraction from an area (e.g., from a personβs head) indicates tracking. You can do this automatically using the
cvGoodFeaturesToTrack method. - You can then track these points with
cvCalcOpticalFlowPyrLK , which will give you new positions for your tracked points.
See the best tutorial here .
If you want to understand the concepts underlying these features, I would highly recommend reading Learning OpenCV - unfortunately, the linked book is just a preview, from missing pages.
Anyway, I'm sure you can think of a place where you can get this book;).
source share