cordova-plugin-firebase-mlvision

0.5.3 • Public • Published

cordova-plugin-firebase-mlvision

Cordova plugin for Firebase MLKit Vision

Buy Me A Coffee

Installation

Run:

cordova plugin add cordova-plugin-firebase-mlvision --save

Usage

Text recognition

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

Barcode detector

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

Image Labeler

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

Support

Android iOS
Text recognition X X
Face detection
Barcode scanning X X
Image labeling X X
Object detection & tracking
Landmark recognition

Know Issues

iOS

Build iOS from command line failed in PhaseScriptExecution [CP] Copy Pods Resources

Running from Xcode work correctly

Package Sidebar

Install

npm i cordova-plugin-firebase-mlvision

Weekly Downloads

0

Version

0.5.3

License

MIT

Unpacked Size

39.2 kB

Total Files

9

Last publish

Collaborators

  • alon22