| title | Text Recognition |
|---|---|
| link | https://raw.githubusercontent.com/NativeScript/mlkit/main/packages/mlkit-text-recognition/README.md |
A plugin used with @nativescript/mlkit-core to enable Text Recognition in your app and provide TextResult type for the text recognition event data.
npm install @nativescript/mlkit-text-recognition
For an example, read Use @nativescript/mlkit-core and Text Recognition.
The Text Recognition event data type.
interface TextResult {
text?: string
bounds: Bounds
lines: TextLine[]
points: Point[]
}interface Point {
x: number
y: number
}interface Bounds {
origin: Origin
size: Size
}interface Origin {
x: number
y: number
}interface Size {
width: number
height: number
}interface TextLine {
text?: string
bounds: Bounds
elements: TextElement[]
points?: Point[]
}interface TextElement {
text?: string
bounds: Bounds
}Apache License Version 2.0
