FIRVisionObjectDetectorOptions
@interface FIRVisionObjectDetectorOptions : NSObject
Configurations for an object detector.
-
Indicates whether the object classification feature is enabled. The default value is
NO
.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL shouldEnableClassification;
-
Indicates whether all detected objects in the image or frame should be returned by the detector. If set to
NO
, the detector returns only the most prominent object detected. The default value isNO
.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL shouldEnableMultipleObjects;
-
The mode for the object detector. The default value is
VisionObjectDetectorMode.stream
.Declaration
Objective-C
@property (assign, readwrite, nonatomic) FIRVisionObjectDetectorMode detectorMode;
-
Initializes a
VisionObjectDetectorOptions
instance with the default values.Declaration
Objective-C
- (nonnull instancetype)init;