Files
awesome-cordova-plugins/docs/plugins/firebase-model/README.md
T
Daniel Sogl 76b4e03d04 feat!: replace dgeni/gulp with TypeDoc for README generation
Replace the legacy dgeni/gulp documentation pipeline with TypeDoc
and typedoc-plugin-markdown. Generates plugin README files with
extracted @Plugin() decorator metadata. Register custom JSDoc tags
used by plugin source files.
2026-03-21 15:16:18 -07:00

909 B

Firebase Model

$ ionic cordova plugin add cordova-plugin-firebase-model
$ npm install @awesome-cordova-plugins/firebase-model

Usage Documentation

This plugin downloads the TensorFlow model from firebase and classify the images.

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