Ask Your Question
0

Apply GoodFeaturesToTrack on a rect.

asked 2015-04-11 12:35:00 -0600

215 gravatar image

I thinking of using Haarcascades to detect faces, and there after improve tracking using the GoodFeaturesToTrack to track. I am just wondering how i should do it.. I mean the idea of using the Haar cascades is to narrow down the area I apply the GoodFeatureToTrack, i mean the function only give me some points, and how do i use those to track a face?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-11 13:30:56 -0600

Eduardo gravatar image

You can use Optical Flow to track. You will have the motion vectors for each features. You could average the different motions to get the average displacement of the bounding box.

You can get an exmple of Optical Flow here.

Some ideas. You could have a list of face objects. Haar cascades would return the list of detected faces in the current image. The tracking part would be used to predict the location of each face object and merged with the newly detected faces. If one face object doesn't receive any new detection in a certain time, you could drop this face object (false detection).

edit flag offensive delete link more

Comments

The problem with haar cascades is that they momentarily detect other objects aswell.. would it be possible to use optical flow in a within a rect where a face has been detected?

215 gravatar image215 ( 2015-04-11 16:24:36 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-04-11 12:35:00 -0600

Seen: 598 times

Last updated: Apr 11 '15