cordova-plugin-firebase-mlvision
Cordova plugin for Firebase MLKit Vision
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