Files
awesome-cordova-plugins/docs/plugins/firebase-model
Daniel Sogl 95f86044aa docs: update plugin READMEs with new content and corrections
- 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.
2025-06-07 16:42:22 +02:00
..

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