Compare commits
2 Commits
214f8d1f65
...
3fe5f8083d
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fe5f8083d | |||
| c15b9a06c9 |
@@ -468,7 +468,7 @@ public class InspectionTaskServiceImpl implements InspectionTaskService {
|
|||||||
private List<Detection> performDetection(Mat mat) {
|
private List<Detection> performDetection(Mat mat) {
|
||||||
try {
|
try {
|
||||||
if (modelManager != null) {
|
if (modelManager != null) {
|
||||||
YoloDetector detector = modelManager.get("person-helmet"); // 使用人员安全帽检测
|
YoloDetector detector = modelManager.get("garbage"); // 应该使用垃圾检测 当开启自动巡检的时候 需要替换模型
|
||||||
if (detector != null) {
|
if (detector != null) {
|
||||||
return detector.detect(mat);
|
return detector.detect(mat);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user