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 optionshouldEnableClassification
is set toNO
.Declaration
Swift
var classificationCategory: VisionObjectCategory { get }
-
The tracking identifier of the vision object. The value is a non-negative
integerValue
. The value isnil
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 isnil
if the object is detected, but a valid confidence was not provided.Declaration
Swift
var confidence: NSNumber? { get }
-
Unavailable.