NativeScript MLKit Text Recognition module
npm install @nativescript/mlkit-text-recognitionA plugin used with @nativescript/mlkit-core to enable Text Recognition in your app and provide TextResult type for the text recognition event data.
``cli`
npm install @nativescript/mlkit-text-recognition
For an example, read Use @nativescript/mlkit-core and Text Recognition.
The Text Recognition event data type.
`ts`
interface TextResult {
text?: string
bounds: Bounds
lines: TextLine[]
points: Point[]
}
---
#### Point
`ts`
interface Point {
x: number;
y: number;
}`
---
#### Boundsts`
interface Bounds {
origin: Origin;
size: Size;
}`
#### Origints`
interface Origin {
x: number;
y: number;
}
#### Size
`ts`
interface Size {
width: number;
height: number;
}`
---
#### TextLinets`
interface TextLine {
text?: string
bounds: Bounds
elements: TextElement[]
points?: Point[]
}`
#### TextElementts``
interface TextElement {
text?: string
bounds: Bounds
}
---
Apache License Version 2.0