Video plate capture: calibration, edge enhance, auto-detect well borders

This commit is contained in:
2026-06-03 17:56:23 +02:00
parent 4b42c03756
commit 9bb8fc1bce
58 changed files with 1699 additions and 274 deletions
+9 -1
View File
@@ -19,7 +19,7 @@ class DefaultConfig:
webcam_device_index: int = 2
image_quality: int = 90
video_jpeg_quality: int = 90
video_frame_rate: int = 5.0
video_frame_rate: float = 5.0
video_width_capture: int = 2028
video_height_capture: int = 1520
scan_simulation: bool = False
@@ -52,4 +52,12 @@ class ScannerConstants:
def get(self):
return self.conf
@classmethod
def get_config(cls):
return Configuration.objects.filter(active=True).first()
def save_config(self):
d = asdict(self.conf)
Configuration.objects.filter(active=True).update(**d)