feat: packet ocr

This commit is contained in:
pk5ls20 committed 2025-01-12 10:13:12 +08:00
1 parent 5778daeb60
commit c8ee371982
8 files changed
+207

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export interface ImageOcrResult {
texts: TextDetection[];
language: string;
}
export interface TextDetection {
text: string;
confidence: number;
coordinates: Coordinate[];
}
export interface Coordinate {
x: number;
y: number;
}