Know how many people are in the video

So, I want to get the camera’s video stream from the server and be able to know how many people appear on it.

I can install any OS (MAC, Windows, Linux) on my server, use any API (free or paid) and any language (C ++, php, etc.) for this.

I already found some interesting things, such as OpenCV, but I think it is more useful for face recognition than for knowing the number of people in a room ...

Any help would be appreciated :)

+6
source share
2 answers

Use the human detector used for each frame for basic statistics export:

OpenCV is already there:

http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html

All you have to do is replace the face model with the human body ( _fullbody.xml ):

https://github.com/Itseez/opencv/tree/master/data/haarcascades

Now you can export some statistics, such as the number of people in each frame. To find out how many unique people appeared in the sequence, you will need a tracker. From there, things get more complicated. You will need to find what suits your business. Tip: google for a "multi-purpose tracking code" or similar.

+4
source

Source: https://habr.com/ru/post/952571/


All Articles