I want to track people's faces in a video stream (like a security camera), but I am running into a problem. I was using a Haar classifier to find the faces and sending the detected faces to a system to identify the person that was detected (so I can display their name under there face). The problem is that identifying a person takes more than a second, too slow and unnecessary to do every frame as the same people tend to stick around.
What is a good way to track people frame to frame? I was thinking of something like storing every person, and in the next frame trying to find faces detected very close to where they were, but this does not work very well as faces can skip frames, move more than I expect, or "jump" faces swapping who is who.
Is there an accepted way to solve this problem?
- What are some ways to overcome this?