AI-generated Key Takeaways
-
CommonObjectDetectorOptions define shared configurations for all types of object detectors.
-
These options let you enable object classification, detect multiple objects, and set the detector mode (stream or single image).
-
By default, object classification and multiple object detection are disabled, and the detector mode is set to stream.
-
You cannot directly initialize this class; use subclass methods instead.
CommonObjectDetectorOptions
class CommonObjectDetectorOptions : NSObjectCommon configurations shared by all types of object detectors.
-
Indicates whether the object classification feature is enabled. The default value is
false.Declaration
Swift
var shouldEnableClassification: Bool { get set } -
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 isfalse.Declaration
Swift
var shouldEnableMultipleObjects: Bool { get set } -
The mode for the object detector. The default value is
.stream.Declaration
Swift
var detectorMode: ObjectDetectorMode { get set } -
Unavailable. Use the class methods in subclasses.