Ask Your Question
0

Keep Lukas kanade method running on head?

asked 2015-04-14 19:46:27 -0600

215 gravatar image

How do i keep the lukas kanade method keep running on my head even when i move it around, or twist the head. The the point i am only able to make a mask based on Haar cascade and use that to detect good features with for the lukas kanade method, but this method kinda mess up when i twist my head and so on.

any suggestions?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-15 02:29:09 -0600

Take a look at: http://wiki.ros.org/pi_face_tracker

I think that your idea is more or less based on this tracking algorithm.

Once a face is detected (Viola & Jones), the "GoodFeaturesToTrack" filter is run over the face region. These points are then fed to the Lucas-Kanade Optical Flow Tracker, which follows the points from one frame to the next. Two additional methods are run to maintain the integrity of the tracked feature cluster.

  1. feature points are pruned (dropped) if they lie too far outside the current cluster in the x-y camera plane or in depth

  2. new feature points are added by expanding the current cluster ROI by a small amount (10%) and running "GoodFeaturesToTrack" over the expanded region. If the feature cluster shrinks below a specified minimum number of points, the algorithm returns to the Haar face detector and scans the video to relocate the face.

Video: https://www.youtube.com/watch?v=Yw_zk...

edit flag offensive delete link more

Comments

Thank you for the response..

I am not quite sure if understand the 2 additional methods correctly.

I am at moment only able to apply "GoodFeatureToTrack" in a rect from where i have detected the frame.. So when move my face, the same mask will be used, even though the face is not there.. which makes sense since the rect hasn't been updated.

  1. I am not sure I understand how this even would happen.. my frames is now and pref framed is delayed with 1 ms, so it seem impossible for it to happen.

  2. How long would you keep expanding it.. "GoodFeaturesToTrack" doesn't loose any of the point, it keeps having the max number of corners, even if i move me head away from the Rect .

215 gravatar image215 ( 2015-04-15 06:33:17 -0600 )edit

How would you tell the program that this is the face you have to track, without constantly using haar cascades..

215 gravatar image215 ( 2015-04-15 06:45:37 -0600 )edit

Even if i change the quality level, the amount of corners on my face gets are lower than it is on normal background.

215 gravatar image215 ( 2015-04-15 06:52:50 -0600 )edit

I don't know the details, but you can see the source code of the face tracker.

https://code.google.com/p/pi-robot-ro...

albertofernandez gravatar imagealbertofernandez ( 2015-04-15 08:52:54 -0600 )edit

The method only detect within a certain ROI, if you move outside of this ROI it gets less reliable.

215 gravatar image215 ( 2015-04-23 17:21:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-14 19:46:27 -0600

Seen: 518 times

Last updated: Apr 15 '15