FlutterD2go class
Infer using d2go in flutter.
Inference can be done for a static image and camera stream images.
This class has a static method that performs each inference process.
Constructors
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
-
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
Static Methods
-
getImagePrediction(
{required File image, int inputWidth = kInputWidth, int inputHeight = kInputHeight, List< double> mean = kNormMean, List<double> std = kNormStd, double minScore = kMinScore}) → Future<List> - Get the inference result of a static image.
-
getStreamImagePrediction(
{required List< Uint8List> imageBytesList, List<int?> imageBytesPerPixel = kBytesPerPixel, int width = kWidth, int height = kHeight, int inputWidth = kInputWidth, int inputHeight = kInputHeight, List<double> mean = kNormMean, List<double> std = kNormStd, double minScore = kMinScore, int rotation = kRotation}) → Future<List> - Get the inference result of the camera stream image.
-
loadModel(
{required String modelPath, required String labelPath}) → Future< String?> - Load d2go model and label file.