add: type for recognition
This commit is contained in:
parent
094f8a0925
commit
3d76a5ece5
13
src/electron/backend/recognition.ts
Normal file
13
src/electron/backend/recognition.ts
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user