Prepare legacy migration for the portal cutover

- detection from legacy category only for scores >= 0.5, without ''/none
- category_label + view detection_labeled unify ICU and legacy labels
- schema/003 + migrate_legacy --dedupe removes Gundi twins of legacy images
  (same imei, same size, <= 10 min), archived in image_superseded
- migrate_legacy --plan: read-only preview of the migration
- Gundi S3 prefix icu/gundi-test/ -> icu/gundi/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dom
2026-10-16 21:01:17 +02:00
co-authored by Claude Opus 5.5
parent e7e5b6fb87
commit ed105fbff8
9 changed files with 307 additions and 22 deletions
+3 -3
View File
@@ -47,9 +47,9 @@ class GundiConfig:
api_key: str
bind_host: str = "0.0.0.0"
bind_port: int = 8090
inbox_prefix: str = "icu/gundi-test/inbox/"
processed_prefix: str = "icu/gundi-test/processed/"
thumb_prefix: str = "icu/gundi-test/thumbnails/"
inbox_prefix: str = "icu/gundi/inbox/"
processed_prefix: str = "icu/gundi/processed/"
thumb_prefix: str = "icu/gundi/thumbnails/"
workers: int = 4
ocr_workers: int = 2
max_request_bytes: int = 32 * 1024 * 1024