Allow using Google MLKit in capacitor app
npm install capacitor-mlkitAllow using Google MLKit in capacitor app
``bash`
npm install capacitor-mlkit
npx cap sync
* echo(...)
* mlKitOcr(...)
* mlKitOcrScreen(...)
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
mlKitOcr(options: { lang: string; data: string; bounding: string | null; }) => Promise<{ status: string; data: any | null; message: string | null; }>
| Param | Type |
| ------------- | ---------------------------------------------------------------------- |
| options | { lang: string; data: string; bounding: string \| null; } |
Returns: Promise<{ status: string; data: any; message: string | null; }>
--------------------
`typescript`
mlKitOcrScreen(options: { lang: string; bounding: string | null; }) => Promise<{ status: string; data: any | null; message: string | null; }>
| Param | Type |
| ------------- | -------------------------------------------------------- |
| options` | { lang: string; bounding: string \| null; } |
Returns: Promise<{ status: string; data: any; message: string | null; }>
--------------------