Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Optical Flow with opencv

Im trying to implement optical flow in android using openCV http://code.google.com/p/android-opencv/. Basicly i want to build something like this http://www.youtube.com/watch?v=P_Sjn67jIJY . Anyway because im new to android development can anyone guide somewhere in order to build something like the one on the video? Ive already installed opencv port to android and build the cvcamera example successfully using eclipse. Thanks, Thanos

like image 648
thanos Avatar asked Jun 28 '11 11:06

thanos


People also ask

What is optical flow in Opencv?

Optical flow is the pattern of apparent motion of image objects between two consecutive frames caused by the movement of object or camera. It is 2D vector field where each vector is a displacement vector showing the movement of points from first frame to second.

What is Farneback optical flow?

Description. opticFlow = opticalFlowFarneback returns an optical flow object that you can use to estimate the direction and speed of the moving objects in a video. The optical flow is estimated using the Farneback method.

How does optical flow work?

Optical flow is a technique used to describe image motion. It is usually applied to a series of images that have a small time step between them, for example, video frames. Optical flow calculates a velocity for points within the images, and provides an estimation of where points could be in the next image sequence.

What is optical flow tracking?

Optical flow is one of the efficient approaches to track the movement of objects. Optical flow studies the relative motion of objects across different frame sequences based on the velocity of movement of objects and illumination changes.


1 Answers

See this Stanford OpenCV optical flow link. Things should work essentially the same way except the calls may be slightly different due to 1.x vs. 2.x's C vs C++ API issues.

Just edit the CVCamera example and it should be quick. I made a real-time face detection app within about an hour of getting CVCamera to work.

like image 160
peakxu Avatar answered Sep 27 '22 17:09

peakxu