fix(video):修复自动巡检时模型加载错误

- 确保自动巡检功能使用正确的检测模型-修复模型管理器获取错误的模型键值问题
This commit is contained in:
2025-09-30 13:42:48 +08:00
parent c24c5f5f21
commit c15b9a06c9

View File

@@ -468,7 +468,7 @@ public class InspectionTaskServiceImpl implements InspectionTaskService {
private List<Detection> performDetection(Mat mat) {
try {
if (modelManager != null) {
YoloDetector detector = modelManager.get("person-helmet"); // 使用人员安全帽检测
YoloDetector detector = modelManager.get("garbage"); // 应该使用垃圾检测 当开启自动巡检的时候 需要替换模型
if (detector != null) {
return detector.detect(mat);
}