2.0.1 • Published 7 years ago

cordova-plugin-ml-kit v2.0.1

Weekly downloads
23
License
-
Repository
github
Last release
7 years ago

Cordova Plugin ML Kit

Implements ML Kit as Cordova plugin on iOS and Android.

Installation

cordova plugin add cordova-plugin-ml-kit

Features

At the moment only Text Recognition on Android is supported! So it would be great if you could add a PR to add more features. This plugin requires cordova-plugin-firebase!

FeatureAndroidAndroid (Cloud)iOSiOS (Cloud)
Text recognitionxx
Face detection
Barcode scanning
Image labeling
Landmark recognition
Custom model inference

Some features of ML Kit are only available on device others only on cloud. Please see https://firebase.google.com/docs/ml-kit/ for more information!

API Methods

Text recognition

getText(img, options, success, error): void

Text recognition on device

getTextCloud(img, options, success, error): void

Text recognition on Cloud - Much better results, but you need an active paid plan (Blaze Plan) and activate it on Google Cloud. Parameter are the same like getText

parametertypedescription
imagestringImage path on device (file://)
optionsObjectConfiguration (only used for cloud)
success(message: Object)=>voidSuccess callback
error(message: Object)=>voidError callback

options

nametypedefaultdescription
languagestring''Language Code

success

nametypedescription
textstringComplete text
textBlocksArrayText Blocks (Model)

Face detection

Barcode scanning

Image labeling

Landmark recognition

Custom model inference

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago