Go to console

FirebaseMLVisionObjectDetection Framework Reference

VisionObjectDetectorOptions

class VisionObjectDetectorOptions : NSObject

Configurations for an object detector.

  • Indicates whether the object classification feature is enabled. The default value is NO.

    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 NO, the detector returns only the most prominent object detected. The default value is NO.

    Declaration

    Swift

    var shouldEnableMultipleObjects: Bool { get set }
  • The mode for the object detector. The default value is VisionObjectDetectorMode.stream.

    Declaration

    Swift

    var detectorMode: VisionObjectDetectorMode { get set }
  • Initializes a VisionObjectDetectorOptions instance with the default values.

    Declaration

    Swift

    init()