fix(video):修复自动巡检时模型加载错误
- 确保自动巡检功能使用正确的检测模型-修复模型管理器获取错误的模型键值问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user