feat(ocr): full OCR pipeline with polygon annotations, training, and guided mode #232

Merged
marcel merged 40 commits from feat/issue-226-227-ocr-pipeline-polygon into main 2026-04-14 10:31:35 +02:00
Showing only changes of commit a514cbca18 - Show all commits

View File

@@ -15,7 +15,7 @@ interface Run {
}
interface TrainingInfo {
availableBlocks?: number;
availableSegBlocks?: number;
ocrServiceAvailable?: boolean;
runs?: Run[];
}
@@ -29,7 +29,7 @@ let { trainingInfo }: Props = $props();
let training = $state(false);
let successMessage = $state<string | null>(null);
const available = $derived(trainingInfo?.availableBlocks ?? 0);
const available = $derived(trainingInfo?.availableSegBlocks ?? 0);
const tooFewBlocks = $derived(available < 5);
const serviceDown = $derived(trainingInfo?.ocrServiceAvailable === false);
const disabled = $derived(training || tooFewBlocks || serviceDown);