ClassificationModel class

Constructors

ClassificationModel(int _index, List<String> labels)

Properties

hashCode int
The hash code for this object.
no setterinherited
labels List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getImagePrediction(Uint8List imageAsBytes, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<String>
predicts image and returns the supposed label belonging to it
getImagePredictionFromBytesList(List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<String>
predicts image and returns the supposed label belonging to it
getImagePredictionList(Uint8List imageAsBytes, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<List<double?>?>
predicts image but returns the raw net output
getImagePredictionListFromBytesList(List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<List<double?>?>
predicts image but returns the raw net output
getImagePredictionListProbabilities(Uint8List imageAsBytes, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<List<double?>?>
predicts image but returns the output as probabilities image takes the File of the image
getImagePredictionListProbabilitiesFromBytesList(List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<List<double?>?>
predicts image but returns the output as probabilities image takes the File of the image
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited