πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement

View on GitHub

@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

Next
Core

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /