Ask Your Question

Make a ID for detected face and count the number of people in a minute

asked 2013-04-22 11:29:14 -0500

UserOpenCV gravatar image

I detected the face in a webcam using "Violo-Jones" face detector in opencv, now I need do the following:

1) I need to make a ID for each face detected say 1,2,3 for person A,B,C.

2) If the person "A" gets out of the frame and come back within some time ( say 1 minute ), then the ID of the Person "A" should be same that is "1" in my case. If the Person "A" comes after a minute he will be counted as a different ID (3).

How can I do the above in opencv? Any ideas or suggestions or links would be great!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-22 11:36:36 -0500

berak gravatar image

the viola-jones face detector can only detect human heads (face or not).

if you need to recognize faces, you (additionally) need one of the FaceRecognizer classes(eigen/fisher/lbp)

edit flag offensive delete link more

Question Tools


Asked: 2013-04-22 11:29:14 -0500

Seen: 533 times

Last updated: Apr 22 '13