Enhance HVideoTool's detection and restoration capabilities: introduced per-model overlay threshold settings and cross-model non-maximum suppression (NMS) to improve detection accuracy. Updated configuration management to support these features, and refined the UI for better user experience. Documentation in CLAUDE.md has been updated to reflect these changes.

This commit is contained in:
Leonid Pershin
2026-06-08 04:06:50 +03:00
parent cabb4e3d3d
commit 8a366ed43d
11 changed files with 906 additions and 146 deletions
+5 -3
View File
@@ -31,6 +31,8 @@ def build_detector(config: AppConfig) -> Detector:
from .multi import MultiYoloDetector
from .yolo import YoloDetector
return MultiYoloDetector([
YoloDetector(m, config.detection, label=category_of(m)) for m in models
])
nms_iou = config.nms_iou if config.cross_model_nms else None
return MultiYoloDetector(
[YoloDetector(m, config.detection, label=category_of(m)) for m in models],
nms_iou=nms_iou,
)