Implement multi-model detection in HVideoTool: updated the detection system to support multiple YOLO models simultaneously, enhancing detection capabilities. Reflected changes in the UI with a new model selection menu and updated documentation in README and CLAUDE.md to guide users on model management and configuration.

This commit is contained in:
Leonid Pershin
2026-06-07 07:05:50 +03:00
parent ac02ca27a8
commit 0996ca7bb9
14 changed files with 353 additions and 156 deletions
+3 -3
View File
@@ -33,8 +33,8 @@ def apply(config: AppConfig) -> None:
data = _read()
if data.get("detector"):
config.detector = data["detector"]
if "model_path" in data:
config.model_path = data["model_path"]
if isinstance(data.get("detector_models"), list):
config.detector_models = [str(m) for m in data["detector_models"]]
if "threshold" in data:
config.default_threshold = float(data["threshold"])
if data.get("restorer"):
@@ -49,7 +49,7 @@ def save(config: AppConfig) -> None:
data = _read()
data.update(
detector=config.detector,
model_path=config.model_path,
detector_models=list(config.detector_models),
threshold=config.default_threshold,
restorer=config.restorer,
dm_dir=config.dm_dir,