Skip to content

检测摄像头面前人物数量#4650

Merged
donghaiwang merged 12 commits into
OpenHUTB:mainfrom
heeyusike:main
Dec 25, 2025
Merged

检测摄像头面前人物数量#4650
donghaiwang merged 12 commits into
OpenHUTB:mainfrom
heeyusike:main

Conversation

@heeyusike

Copy link
Copy Markdown
Contributor

修改概述:
新增摄像头画面中实时人物数量检测功能,优化目标识别后的人数统计与可视化展示

修改的详细描述

1.调整core/detector.py中的detect_frame函数:新增 “人物数量统计” 逻辑,在处理摄像头帧时,实时筛选检测结果中的 “person” 类目标并统计数量;
2.优化可视化展示:在摄像头画面中添加 “当前人物数量:X” 的文本标注,调整标注位置(画面底部),避免遮挡检测目标。

经过了什么样的测试?

1.操作系统:Windows 10/11、macOS 14、Ubuntu 22.04
2.Python 版本:3.8.5、3.9.13、3.10.8

运行效果

动图、视频、截图等
a4878c02548e460ca825e2938d105c55

Refactor configuration management to support environment variables and improve readability.
Refactor main program for accident video detection with performance improvements, flexible configurations, and enhanced logging. Added support for recognizing people and vehicles.
Refactor processing functions for accident video recognition, adding distance calculation and box center retrieval.
Enhance accident detection with video saving and FPS display.
Refactor main program for driving accident video recognition tool with enhanced performance, flexible configuration, and improved logging. Added support for detecting people and vehicles.
优化了驾驶事故视频识别工具的性能和灵活性,支持命令行动态配置,替换print为日志模块,增强了用户交互体验和程序健壮性。
Enhance accident detection with type differentiation, confidence scoring, and target counting.
@donghaiwang
donghaiwang merged commit 811d865 into OpenHUTB:main Dec 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants