diff --git a/src/electron/backend/recognition.ts b/src/electron/backend/recognition.ts new file mode 100644 index 0000000..aae407b --- /dev/null +++ b/src/electron/backend/recognition.ts @@ -0,0 +1,13 @@ +type RecognitionResult = RecognitionLine[]; +type Pixels = number; +type OriginX = Pixels; +type OriginY = Pixels; +type Width = Pixels; +type Height = Pixels; +type Coordinates = [OriginX, OriginY, Width, Height]; + +interface RecognitionLine { + text: string; + confidence?: number | number[]; + position?: Coordinates; +} \ No newline at end of file