Plugins
Text Recognition
@nativescript/mlkit-text-recognition β
A plugin used with @nativescript/mlkit-core to enable Text Recognition in your app and provide TextResult type for the text recognition event data.
Contents β
Installation β
cli
npm install @nativescript/mlkit-text-recognition
Use @nativescript/mlkit-text-recognition β
For an example, read Use @nativescript/mlkit-core and Text Recognition.
API β
TextResult β
The Text Recognition event data type.
ts
interfaceTextResult {
text?:string
bounds:Bounds
lines:TextLine[]
points:Point[]
}
Point β
ts
interfacePoint {
x:number
y:number
}
Bounds β
ts
interfaceBounds {
origin:Origin
size:Size
}
Origin β
ts
interfaceOrigin {
x:number
y:number
}
Size β
ts
interfaceSize {
width:number
height:number
}
TextLine β
ts
interfaceTextLine {
text?:string
bounds:Bounds
elements:TextElement[]
points?:Point[]
}
TextElement β
ts
interfaceTextElement {
text?:string
bounds:Bounds
}
License β
Apache License Version 2.0
- Previous
- Selfie Segmentation
- Next
- Core