Know how many people are on a video [closed]

放肆的年华 提交于 2019-12-03 07:39:51
LovaBill

Use a human detector applied on each frame for basic statistic exports:

OpenCV has one already:

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

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

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

You can now export some statistics such as how many people per frame there are. To find how many unique individuals appeared in a sequence, you'll need a tracker. From there things get more difficult. You'll have to find something that suits your case. Tip: google for "multi-target tracking code" or similar.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!