2.0.0 • Published 10 months ago

capacitor-plugin-dynamsoft-label-recognizer v2.0.0

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

capacitor-plugin-dynamsoft-label-recognizer

Capacitor plugin of Dynamsoft Label Recognizer which brings text recognition ability to your apps.

Versions

For Capacitor v6, use v2.x.

For Capacitor v5, use v1.x.

For Capacitor v4, use v0.x.

SDK Versions Used for Different Platforms

ProductAndroidiOSWeb
Dynamsoft Label Recognizer2.x2.x2.x

Install

npm install capacitor-plugin-dynamsoft-label-recognizer
npx cap sync

Demo

Vanilla JS example

API

initialize()

initialize() => Promise<void>

initLicense(...)

initLicense(options: { license: string; }) => Promise<void>
ParamType
options{ license: string; }

recognizeBase64String(...)

recognizeBase64String(options: { base64: string; }) => Promise<{ results: DLRResult[]; }>
ParamType
options{ base64: string; }

Returns: Promise<{ results: DLRResult[]; }>


recognizeBitmap(...)

recognizeBitmap(options: { className?: string; methodName?: string; }) => Promise<{ results: DLRResult[]; }>

Android and iOS only method which directly read camera frames from capacitor-plugin-camera

ParamType
options{ className?: string; methodName?: string; }

Returns: Promise<{ results: DLRResult[]; }>


updateRuntimeSettings(...)

updateRuntimeSettings(options: { settings: RuntimeSettings; }) => Promise<void>
ParamType
options{ settings: RuntimeSettings; }

resetRuntimeSettings()

resetRuntimeSettings() => Promise<void>

setEngineResourcesPath(...)

setEngineResourcesPath(options: { path: string; }) => Promise<void>
ParamType
options{ path: string; }

addListener('onResourcesLoadStarted', ...)

addListener(eventName: 'onResourcesLoadStarted', listenerFunc: onResourcesLoadStartedListener) => Promise<PluginListenerHandle>
ParamType
eventName'onResourcesLoadStarted'
listenerFunconResourcesLoadStartedListener

Returns: Promise<PluginListenerHandle>


addListener('onResourcesLoaded', ...)

addListener(eventName: 'onResourcesLoaded', listenerFunc: onResourcesLoadedListener) => Promise<PluginListenerHandle>
ParamType
eventName'onResourcesLoaded'
listenerFunconResourcesLoadedListener

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

DLRResult

PropType
locationDLRQuadrilateral
confidencenumber
lineResultsDLRLineResult[]

DLRQuadrilateral

PropType
pointsDLRPoint[]

DLRPoint

PropType
xnumber
ynumber

DLRLineResult

PropType
textstring
locationDLRQuadrilateral
confidencenumber
isCheckDigitMatchedboolean

RuntimeSettings

PropType
templatestring
customModelConfigCustomModelConfig

CustomModelConfig

PropType
customModelFolderstring
customModelFileNamesstring[]

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

onResourcesLoadStartedListener

(resourcePath: string): void

onResourcesLoadedListener

(resourcePath: string): void

2.0.0

10 months ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago