1.0.6 • Published 7 months ago

capacitor-mlkit-ocr v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

capacitor-mlkit-ocr

ML Kit for image to text\

Install

npm install capacitor-mlkit-ocr
npx cap sync

API

detectText(...)

detectText(options: DetectImageOptions) => Promise<TextDetectionResult>

Tries to detect text from the given image

ParamTypeDescription
optionsDetectImageOptionsOptions for the text detection

Returns: Promise<TextDetectionResult>


Interfaces

TextDetectionResult

PropTypeDescription
textstringFound text
blocksBlock[]Parsed text by lines

Block

PropType
linesLine[]

Line

PropType
elementsany[]

DetectImageOptions

PropTypeDescription
base64ImagestringThe image to detect texts from
rotationnumberThe image's counter-clockwise orientation degrees. Only 0, 90, 180, 270 are supported. Default 0
1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago