refactored

This commit is contained in:
2025-12-10 21:04:05 +01:00
parent 6a6ce805e3
commit 4db4b40b13
+1 -2
View File
@@ -43,7 +43,7 @@ class Detector(abc.ABC):
Path.mkdir(Path(RESULTS_FOLDER), exist_ok=True)
try:
self.params_load()
except json.decoder.JSONDecodeError:
except Exception:
self.params_save()
self.cap = None
@@ -59,7 +59,6 @@ class Detector(abc.ABC):
self.cap = cv.VideoCapture(self.src_images, cv.CAP_IMAGES)
self.camera_name = self.name
print(f"Camera: {self.camera_name}")
self.calibration = Calibration()
self.calibration.load(f"{RESULTS_FOLDER}/{self.camera_name}_cal.npz")