I want to count number of faces in video comes, like if I am standing in front of camera then count=1, now any other person come in front of camera count=2, If I again come back to the camera now the count=3 like so.
What I was doing is, using frontal_face_haarcascade.xml opencv and python I am able to detect faces in frame and then find the total number of bounding rectangles around the face, in the frame then increase the count, but What's happening the count increasing as the number of frames.
How can I overcome this problem.