mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
95f86044aa
- Revised titles and installation commands for several plugins, including Adjust, AdMob Plus, and Approov Advanced HTTP. - Added new README files for plugins such as Airship, Audio Management, and Genius Scan. - Corrected plugin repository links and usage documentation across multiple plugins. - Updated supported platforms and descriptions for clarity and accuracy. - Enhanced consistency in formatting and structure throughout the documentation.
936 B
936 B
FirebaseModelInput
$ ionic cordova plugin add cordova-plugin-firebase-model $ npm install @awesome-cordova-plugins/firebase-model
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/firebase-model/)
Plugin Repo: ['']('')
This plugin downloads the TensorFlow model from firebase and classify the images.
```typescript
import { FirebaseModel } from '@ionic-native/ionic-native-firebase-model';
constructor(private firebaseModel: FirebaseModel) { }
...
this.firebaseModel.configure('Sample_Model')
.subscribe((res: FirebaseModelConfigResult) => console.log(res.status + " - " + res.progress))
.catch((error: any) => console.error(error));
try {
var result:FirebaseModelClassifyResult = await this.firebaseModel.classify("/Documents/input_image.png")
console.log(result.label + " - " + result.score)
}
catch (e) {
console.log(e)
}
Supported platforms
- iOS