One Logo Pool Ball
Vision · IOS API REFERENCE

VNDetectedObjectObservation

class · iOS 11.0+ · SDK 27.1

class VNDetectedObjectObservation

Members (4)

init · iOS 11.0+

init

TypeScript
static initBoundingBox(boundingBox: { x: number; y: number; width: number; height: number }): VNDetectedObjectObservation
Swift declaration
convenience init(boundingBox: CGRect)
init · iOS 12.0+

init

TypeScript
static initRequestRevisionBoundingBox(requestRevision: number, boundingBox: { x: number; y: number; width: number; height: number }): VNDetectedObjectObservation
Swift declaration
convenience init(requestRevision: Int, boundingBox: CGRect)
get · iOS 11.0+

boundingBox

TypeScript
get boundingBox(): { x: number; y: number; width: number; height: number }
Swift declaration
var boundingBox: CGRect { get }
get · iOS 15.0+

globalSegmentationMask

TypeScript
get globalSegmentationMask(): (VNPixelBufferObservation) | null
Swift declaration
var globalSegmentationMask: VNPixelBufferObservation? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

VNDetectedObjectObservation.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Vision types →