16 lines
244 B
TypeScript
16 lines
244 B
TypeScript
export interface ImageOcrResult {
|
|
texts: TextDetection[];
|
|
language: string;
|
|
}
|
|
|
|
export interface TextDetection {
|
|
text: string;
|
|
confidence: number;
|
|
coordinates: Coordinate[];
|
|
}
|
|
|
|
export interface Coordinate {
|
|
x: number;
|
|
y: number;
|
|
}
|