2019-01-17 06:21:23 -0600 | received badge | ● Popular Question (source) |
2017-03-25 08:13:23 -0600 | asked a question | How to count the number of faces detected in live video by openCV using python? I need to count the number of faces in a video taken from webcam.For example,if I am standing in front of the camera then count=1,now if any other person is detected then count=2,if another person is detected then the count should be 3. This is the code: I am using frontal_face_haarcascade.xml by opencv in python. I can detect faces in frame and then increase the count, but what's happening is that the count is increasing as the number of frames.So, even if 1 person was detected standing for 10 sec, it shows count as some '67' How can I overcome this problem. |