ModelApi class
Constructors
ModelApi ({BinaryMessenger ? binaryMessenger , String messageChannelSuffix = '' })
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.
Methods
getImagePredictionList (int index , Uint8List ? imageData , List <Uint8List > ? imageBytesList , int ? imageWidthForBytesList , int ? imageHeightForBytesList , List <double > mean , List <double > std )
→ Future <List <double > >
predicts image but returns the raw net output
getImagePredictionListObjectDetection (int index , Uint8List ? imageData , List <Uint8List > ? imageBytesList , int ? imageWidthForBytesList , int ? imageHeightForBytesList , double minimumScore , double IOUThreshold , int boxesLimit )
→ Future <List <ResultObjectDetection > >
predicts image but returns the output detections
getPredictionCustom (int index , List <double > input , List <int > shape , String dtype )
→ Future <List <Object ? > ? >
predicts abstract number input
getRawImagePredictionList (int index , Uint8List imageData )
→ Future <List <double > >
predicts raw image but returns the raw net output
getRawImagePredictionListObjectDetection (int index , Uint8List imageData , double minimumScore , double IOUThreshold , int boxesLimit )
→ Future <List <ResultObjectDetection > >
predicts raw image but returns the raw net output
loadModel (String modelPath , int ? numberOfClasses , int ? imageWidth , int ? imageHeight , int ? 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