简体   繁体   English

计算视频中的人数

[英]Count the number of people in the video

I am working on image processing and computer vision project. 我正在从事图像处理和计算机视觉项目。 The project is to count the number of people entering the conference. 该项目将计算进入会议的人数。 This need to done in OpenCV or Python. 这需要在OpenCV或Python中完成。

I have already tried the Haar Cascade that is available in OpenCV for Upper body: Detect upper body portion using OpenCV 我已经尝试过OpenCV中可用于上半身的Haar Cascade: 使用OpenCV检测上半身部分

However, it does not address the requirement. 但是,它没有满足要求。 The link of the videos is as follows: 视频链接如下:

https://drive.google.com/open?id=0B3LatSCwKo2benZyVXhKLXV6R0U https://drive.google.com/open?id=0B3LatSCwKo2benZyVXhKLXV6R0U

If you view the sample1 file, at 0:16 secs a person is entering the room, that would always be the way. 如果你查看sample1文件,那么在0:16秒,一个人正在进入房间,这将永远是这样。 The camera is on top of the door. 相机在门的顶部。

Identifying People from this Aerial Video Stream 识别此航拍视频流中的人物

I think there is a simple way of approaching this problem. 我认为有一种解决这个问题的简单方法。 Background subtraction methods for detecting moving objects are just what you need because the video you provided seems to only have one moving object at any point: the person walking through the door. 用于检测移动物体的背景减法方法正是您所需要的,因为您提供的视频似乎在任何点上只有一个移动物体:走过门的人。 Thus, if you follow this tutorial in Python, you should be able to implement a satisfying solution for your problem. 因此,如果您在Python中使用本教程 ,您应该能够为您的问题实现令人满意的解决方案。

Counting People Entering / Exiting 计算人员进入/退出

Now, the first question that pops to my mind is what might I do to count if multiple people are walking through the door at separate time intervals ( one person walks in 10 seconds into the video and a second person walks in 20 seconds into the video )? 现在,我想到的第一个问题是,如果有多个人以不同的时间间隔走过门,我可以做些什么呢( 一个人在10秒内走进视频,第二个人走进视频20秒内 )? Here's the simplest solution to this consideration that I can think of. 这是我能想到的最简单的解决方案。 Once you've detected the blob(s) via background subtraction, you only have to track the blob until it goes off the frame . 一旦通过背景减法检测到斑点,您只需跟踪斑点直到它离开帧 Once it leaves the frame, the next blob you detect must be a new person entering the room and thus you can continue counting. 一旦它离开框架,你检测到的下一个斑点必须是进入房间的新人,因此你可以继续计数。 If you aren't familiar with how to track objects once they have been detected, give this tutorial a read. 如果您不熟悉如何在检测到对象后跟踪对象,请阅读本教程 In this manner, you'd avoid counting the same blob (ie, the same person) entering too many times. 通过这种方式,您可以避免计算进入太多次的同一个blob(即同一个人)。

The Difficulties in Processing Complex Dynamic Environments 处理复杂动态环境的难点

If you think that there is a high level of traffic through that doorway, then the problem becomes much more difficult. 如果您认为通过该门口有高水平的交通,则问题变得更加困难。 This is because in that case there may not be much stationary background to subtract at any given moment, and further there may be a lot of overlap between detected blobs. 这是因为在那种情况下,在任何给定时刻可能没有太多静止背景要减去,并且在检测到的斑点之间可能存在很多重叠。 There is a lot of active research in the area of autonomous pedestrian tracking and identification - so, in short, it's a difficult question that doesn't have a straightforward easy-to-implement solution. 在自动行人跟踪和识别领域有很多活跃的研究 - 简而言之,这是一个难以解决的问题,它没有一个简单易用的解决方案。 However, if you're interested in reading about some of the potential approaches you could take to solving these more challenging problems in pedestrian detection from an aerial view, I'd recommend reading the answers to this question . 但是,如果您有兴趣阅读一些潜在的方法,您可以从鸟瞰图中解决行人检测中这些更具挑战性的问题,我建议您阅读这个问题的答案。

I hope this helps, good luck coding! 我希望这有帮助,祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用以下条件计算视频中的未知人数 - Count the number of unknown people in a video with following conditions 实时视频中的人数统计 - Count people in realtime video 计算视频中的人数 - Count number of persons in a video 如何分组和统计特定年份和月份的访问人数 - How to group and count the number of people visits in particular year and months 根据他们的角色计算语音频道中的人数 - Count the number of people in a voice channel based on the roles they have 没有重复,计算每天进入的人数 - Without duplication, count number of people entering each day 我将如何计算每个类别 BMI 计算器中的人数 - How would I count the number of people in each category BMI calculator 基于 2 列条件的 Pandas 中的条件运行计数(根据时间戳计算队列中的人数) - Conditional running count in pandas based on conditions in 2 columns (counting number of people in a queue based on timestamps) Dataframe。 需要计算每周(7 天)不同人的总数。 python - Dataframe. Need to Count the total number of different people each week (7 days). python python:按部门(部门)计算半小时内建筑物中的人数 - python : count the number of people by division (department) thats in a building in half hour slots
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM