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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user