LocalObjectDetectorOptions class

Options to configure the detector while using a local custom model.

Inheritance

Constructors

LocalObjectDetectorOptions({required DetectionMode mode, required String modelPath, required bool classifyObjects, required bool multipleObjects, int maximumLabelsPerObject = 10, double confidenceThreshold = 0.5})
Constructor to create an instance of LocalObjectDetectorOptions.

Properties

classifyObjects bool
Indicates whether the object classification feature is enabled. The default value is false.
finalinherited
confidenceThreshold double
The confidence threshold for labels returned by the object detector. Labels returned by the object detector will have a confidence level higher or equal to the given threshold. The threshold is a floating-point value and must be in range 0, 1. Default is 0.5.
final
hashCode int
The hash code for this object.
no setterinherited
maximumLabelsPerObject int
Maximum number of labels that detector returns per object. Must be positive. Default is 10.
final
mode DetectionMode
Determines the detection mode. The default value is DetectionMode.stream.
finalinherited
modelPath String
Path where the local custom model is stored.
final
multipleObjects bool
Indicates whether all detected objects in the image or frame should be returned by the detector. If set to false, the detector returns only the most prominent object detected. The default value is false
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ObjectDetectorType
Indicates that it uses a custom local model to process images.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a json representation of an instance of LocalObjectDetectorOptions.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited