Page Summary
-
CommonObjectDetectorOptionsprovides common configurations for all types of object detectors. -
It allows enabling/disabling object classification and detection of multiple objects.
-
Users can set the detector mode, with the default being stream mode.
-
Initialization should be done using class methods in subclasses, as the default initializer is unavailable.
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.