FirebaseObjectDetectorOptions class

Options to configure the detector while using a Firebase model.

Inheritance

Constructors

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

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
modelName String
Name of the firebase model.
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 Firebase 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 FirebaseObjectDetectorOptions.
override
toString() String
A string representation of this object.
inherited

Operators

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