create
open fun create( assetManager: AssetManager, modelFilename: String, labelFilename: String, isQuantized: Boolean): Classifier
Content copied to clipboard
Initializes a native TensorFlow session for classifying images.
Parameters
asset Manager
The asset manager to be used to load assets.
model Filename
The filepath of the model GraphDef protocol buffer.
label Filename
The filepath of label file for classes.
is Quantized
Boolean representing model is quantized or not
open fun create( assetManager: AssetManager, modelFile: File, labelFilename: String, isQuantized: Boolean): Classifier
Content copied to clipboard