BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.22k stars 4.62k forks source link

Detect Object moving but not Camera moving #2478

Open sanchosrancho opened 7 years ago

sanchosrancho commented 7 years ago

GPUImageMotionDetector works great except one thing—when you move camera it detects that all objects (edges of objects) in the frame have been moved. But physically they don't. I'm seeking for a way to filter out these movements and leave only those objects that really moves.

I thinking of using one of the corners determination algorithms (for example, Harris Corner Detection) to build anchor points and analyse their movement in the frame. Or alternatively, use the gyroscope data to obtain the vector of device motion and filtering changes in the frame with a similar vector.

These approaches seems a bit of clumsy. So I would like to know how to do it in a simpler and more obvious way.

Note: I do not need a good quality of motion recognition.

ghost commented 6 years ago

Use Vision Tracking Request from Vision.framework.