ModelApi class

Constructors

ModelApi({BinaryMessenger? binaryMessenger})
Constructor for ModelApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getImagePredictionList(int arg_index, Uint8List? arg_imageData, List<Uint8List?>? arg_imageBytesList, int? arg_imageWidthForBytesList, int? arg_imageHeightForBytesList, List<double?> arg_mean, List<double?> arg_std) Future<List<double?>>
predicts image but returns the raw net output
getImagePredictionListObjectDetection(int arg_index, Uint8List? arg_imageData, List<Uint8List?>? arg_imageBytesList, int? arg_imageWidthForBytesList, int? arg_imageHeightForBytesList, double arg_minimumScore, double arg_IOUThreshold, int arg_boxesLimit) Future<List<ResultObjectDetection?>>
predicts image but returns the output detections
getPredictionCustom(int arg_index, List<double?> arg_input, List<int?> arg_shape, String arg_dtype) Future<List<Object?>?>
predicts abstract number input
getRawImagePredictionList(int arg_index, Uint8List arg_imageData) Future<List<double?>>
predicts raw image but returns the raw net output
getRawImagePredictionListObjectDetection(int arg_index, Uint8List arg_imageData, double arg_minimumScore, double arg_IOUThreshold, int arg_boxesLimit) Future<List<ResultObjectDetection?>>
predicts raw image but returns the raw net output
loadModel(String arg_modelPath, int? arg_numberOfClasses, int? arg_imageWidth, int? arg_imageHeight, int? arg_objectDetectionModelType) Future<int>
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

Constants

codec → const MessageCodec<Object?>