了解视频的人数 [英] Know how many people are on a video

查看:182
本文介绍了了解视频的人数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,它是,我想从服务器获取一个摄像机视频流,并能够知道有多少人出现在它。

So there it is, I want to get a camera video stream from a server, and be able to know how many people appear on it.

我可以在服务器上安装任何操作系统(MAC,Windows,Linux),使用任何API(免费或付费)和任何语言(C ++,php等)这样做。

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

我已经找到一些有趣的东西,如OpenCV,但我认为它更有用的面部识别比知道一个房间里的人数...

I already found some interesting things, such as OpenCV but I think it's more useful for face recognizing than to know the number of people in a room...

任何帮助将不胜感激:)

Any help would be appreciated :)

推荐答案

每个框架的基本统计导出:

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

OpenCV已经有一个:

OpenCV has one already:

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

所有你需要做的是用人体(_fullbody.xml)替换面部模型:

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

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

您现在可以导出一些统计信息,例如每帧人物的方式。要查找序列中出现了多少个唯一的个人,您需要一个跟踪器。从那里的事情变得更加困难。你必须找到适合你的情况。提示:google为多目标跟踪代码或类似。

You can now export some statistics such as how 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.

这篇关于了解视频的人数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆