Motion Tracking Using Emgu CV (or OpenCV)

How can I track movements using Emgu CV or OpenCV? What are the different ways to do this?

I want to track objects with a fixed background.

Best wishes

+6
source share
1 answer

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;).

+7
source

Source: https://habr.com/ru/post/890387/


All Articles