Repository navigation
增加摄像头显示车辆人物数量 - #4582
Closed
heeyusike wants to merge 11 commits into
Closed
增加摄像头显示车辆人物数量#4582heeyusike wants to merge 11 commits into
heeyusike wants to merge 11 commits into
Conversation
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.
Member
|
需要连接模拟器获取数据 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
优化事故检测模块,新增摄像头画面的车辆 / 人物实时计数、检测置信度显示,同时细化事故类型区分功能
修改的详细描述
1.调整core/detector.py中_calculate_accident函数:将原 “是否事故” 的布尔判断,升级为 “多车事故”“人车接触事故” 的类型区分;
2.优化detect_frame函数:在摄像头画面中新增 “行人 / 小车 / 卡车” 实时数量统计,同时给目标框标注增加检测置信度(保留 2 位小数);
经过了什么样的测试?
运行效果
动图、视频、截图等
