edit functionality + separation betw upload & edit

This commit is contained in:
2024-12-07 16:13:39 +01:00
parent 40abef241e
commit 92ec07fe75
8 changed files with 364 additions and 285 deletions

View File

@@ -14,6 +14,7 @@ export interface DeckImage {
name: string;
id:string;
}
export interface Box {
x1:number;
x2:number;
@@ -31,6 +32,21 @@ export interface BackendBox {
y1: number;
y2: number;
}
// Definiert ein einzelnes Punktpaar [x, y]
type OcrPoint = [number, number];
// Definiert die Box als Array von vier Punkten
type OcrBox = [OcrPoint, OcrPoint, OcrPoint, OcrPoint];
// Interface für jedes JSON-Objekt
export interface OcrResult {
box: OcrBox;
confidence: number;
name: string;
text: string;
}
@Injectable({
providedIn: 'root'
})