1.0.2 • Published 2 years ago

@red-mobile/cordova-plugin-mlkit v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

cordova-plugin-mlkit

Cordova plugin for MLKit

Installation

Run:

cordova plugin add @red-mobile@cordova-plugin-mlkit

Usage

Text recognition

//FILE_URI: File URI or Base64 Format
MLkit.onDeviceTextRecognizer(FILE_URI,
    (text) => {
        console.log(text);
    },
    (error) => {
        console.error(error);;
    })
})

Barcode detector

//FILE_URI: File URI or Base64 Format
MLKit.barcodeDetector(FILE_URI,
    (json) => {
        console.log(json);
    },
    (error) => {
        console.error(error);;
    })
})

Image Labeler

//FILE_URI: File URI or Base64 Format
MLKit.imageLabeler(FILE_URI,
    (json) => {
        console.log(json);
    },
    (error) => {
        console.error(error);;
    })
})

Support

AndroidiOS
Text recognitionX
Face detection
Barcode scanningX
Image labelingX
Object detection & tracking
Landmark recognition
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago