ModelObjectDetection class
Methods
-
addLabels(List<ResultObjectDetection> prediction)
→ void
-
Adds labels to the given list of
prediction
objects.
-
getCameraImagePrediction(CameraImage cameraImage, {int? rotation, double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10, CameraPreProcessingMethod cameraPreProcessingMethod = CameraPreProcessingMethod.imageLib, PreProcessingMethod preProcessingMethod = PreProcessingMethod.imageLib})
→ Future<List<ResultObjectDetection>>
-
Retrieves a list of ResultObjectDetection with its assigned labels by predicting the objects in the given
cameraImage
.
The rotation
parameter specifies the rotation of the camera image.
The optional parameters minimumScore
, iOUThreshold
, boxesLimit
, cameraPreProcessingMethod
, and preProcessingMethod
allow customization of the prediction process.
-
getCameraImagePredictionList(CameraImage cameraImage, {int? rotation, double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10, CameraPreProcessingMethod cameraPreProcessingMethod = CameraPreProcessingMethod.imageLib, PreProcessingMethod preProcessingMethod = PreProcessingMethod.imageLib})
→ Future<List<ResultObjectDetection>>
-
Retrieves a list of ResultObjectDetection by predicting the objects in the given
cameraImage
.
The rotation
parameter specifies the rotation of the camera image.
The optional parameters minimumScore
, iOUThreshold
, boxesLimit
, cameraPreProcessingMethod
, and preProcessingMethod
allow customization of the prediction process.
-
getImagePrediction(Uint8List imageAsBytes, {double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10, PreProcessingMethod preProcessingMethod = PreProcessingMethod.imageLib})
→ Future<List<ResultObjectDetection>>
-
Performs object detection on an image and returns a list of ResultObjectDetection with its assigned labels.
-
getImagePredictionFromBytesList(List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight, {double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10})
→ Future<List<ResultObjectDetection>>
-
Performs object detection on an image as bytesList and returns a list of ResultObjectDetection with its assigned labels.
-
getImagePredictionList(Uint8List imageAsBytes, {double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10, PreProcessingMethod preProcessingMethod = PreProcessingMethod.imageLib})
→ Future<List<ResultObjectDetection>>
-
Returns a list of ResultObjectDetection for the given
imageAsBytes
.
-
getImagePredictionListFromBytesList(List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight, {double minimumScore = 0.5, double iOUThreshold = 0.5, int boxesLimit = 10})
→ Future<List<ResultObjectDetection>>
-
Performs object detection on an image as bytesList and returns a list of ResultObjectDetection.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
renderBoxesOnImage(File image, List<ResultObjectDetection?> recognitions, {Color? boxesColor, bool showPercentage = true})
→ Widget
-
Renders a list of boxes on an image.
-
toString()
→ String
-
A string representation of this object.
inherited