diff --git a/admin-lehrer/components/ocr-kombi/StepAnsicht.tsx b/admin-lehrer/components/ocr-kombi/StepAnsicht.tsx index f9a4036..8d7c427 100644 --- a/admin-lehrer/components/ocr-kombi/StepAnsicht.tsx +++ b/admin-lehrer/components/ocr-kombi/StepAnsicht.tsx @@ -74,11 +74,6 @@ export function StepAnsicht({ sessionId, onNext }: StepAnsichtProps) { const avgRowH = (grid as any).layout_metrics?.avg_row_height_px || 31 const scaledFont = Math.max(7, baseFontPx * scale) - // Collect all word boxes for OCR overlay - const allWordBoxes = grid.zones.flatMap((z) => - z.cells.flatMap((c) => (c.word_boxes || []).map((wb) => ({ ...wb, zone: z }))) - ) - return (
{/* Header */} @@ -124,32 +119,16 @@ export function StepAnsicht({ sessionId, onNext }: StepAnsichtProps) { Original + OCR
- {/* Scan image */} + {/* Server-rendered OCR overlay image (scan + red snapped letters) */} {sessionId && ( Original )} - {/* OCR word overlay (red text) */} - {allWordBoxes.map((wb, i) => ( -
- {wb.text} -
- ))} - {/* Coordinate grid */} {showGrid && }