Vylepšení skenování - prázdné stránky, otáčení, vylepšení UI
All threads resolved!
All threads resolved!
Compare changes
- Jiří Setnička authored
Použit práh 180 (value > 180 = bílý pixel). Detekuje QR kódy lépe, než detekce na šedém obrázku. Obrázek pro zobrazení při třídění ukládáme barevný, předtím byl šedý.
+ 94
− 29
@@ -20,6 +20,12 @@ from mo.jobs import TheJob, job_handler
@@ -172,7 +178,10 @@ def handle_create_protocols(the_job: TheJob):
@@ -195,6 +204,7 @@ def schedule_process_scans(contest: db.Contest, site: Optional[db.Place], scans_
@@ -210,6 +220,8 @@ class ScanJobArgs:
@@ -226,6 +238,7 @@ def handle_process_scans(the_job: TheJob):
@@ -247,10 +260,26 @@ def handle_process_scans(the_job: TheJob):
@@ -258,12 +287,17 @@ def handle_process_scans(the_job: TheJob):
@@ -276,12 +310,13 @@ def handle_process_scans(the_job: TheJob):
@@ -300,23 +335,22 @@ def handle_process_scans(the_job: TheJob):
@@ -355,27 +389,57 @@ def _process_scan_file(args: ScanJobArgs) -> ScanJobResult:
@@ -505,9 +569,10 @@ def handle_sort_scans(the_job: TheJob):