VisionObject

class VisionObject : NSObject

An object detected in an image.

  • The rectangle that holds the discovered object relative to the detected image in the view’s coordinate system.

    Declaration

    Swift

    var frame: CGRect { get }
  • The category of the object returned by the classifier. The property returns .unknown if the detector option shouldEnableClassification is set to NO.

    Declaration

    Swift

    var classificationCategory: VisionObjectCategory { get }
  • The tracking identifier of the vision object. The value is a non-negative integerValue. The value is nil if no tracking ID was provided.

    Declaration

    Swift

    var trackingID: NSNumber? { get }
  • The probability confidence for the vision object in range from 0 to 1. The value is a floatValue. The value is nil if the object is detected, but a valid confidence was not provided.

    Declaration

    Swift

    var confidence: NSNumber? { get }
  • Unavailable.