For the complete documentation index, see llms.txt. This page is also available as Markdown.

Firebase Model

Firebase Model plugin for Cordova and Ionic. This plugin downloads the TensorFlow model from firebase and classify the images. ```typescript import {…

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

import { FirebaseModel } from '@awesome-cordova-plugins/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)
}

Installation

Supported Platforms

  • iOS

Further Information

Last updated