I'm trying to develop an algorithm for real time tracking moving objects with a single moving camera setup as a project, in OpenCV (C++).
My basic objectives are
- Detect motion in an (initially) static frame
- Track that moving object (camera to follow that object)
Here is what I have tried already
- Salient motion detection using temporal differencing and Optical Flow. (does not compensate for a moving camera)
- KLT based feature tracking, but I was not able to segment the moving object features (moving object features got mixed with other trackable features in the image)
- Mean shift based tracking (required initialization and is a bit computationally expensive)
I'm now trying to look into the following methods
- Histogram of Gradients.
- Algorithms that implement camera motion parameters.
Any advice on which direction should I proceed forward to acheive my objective.