ClassificationModel class
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