edit functionality + separation betw upload & edit
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user