MLKitObjectDetectionCommon Framework Reference

CommonObjectDetectorOptions

class CommonObjectDetectorOptions : NSObject

Common 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 is false.

    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.