One Logo Pool Ball
Vision · IOS API REFERENCE

VNRectangleObservation

class · iOS 11.0+ · SDK 27.1

class VNRectangleObservation

Members (6)

init · iOS 13.0+ · Deprecated in iOS 17.0

init

TypeScript
static initRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: { x: number; y: number }, bottomLeft: { x: number; y: number }, bottomRight: { x: number; y: number }, topRight: { x: number; y: number }): VNRectangleObservation
Swift declaration
convenience init(requestRevision: Int, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint)
init · iOS 17.0+

init

TypeScript
static initRequestRevisionTopLeftTopRightBottomRightBottomLeft(requestRevision: number, topLeft: { x: number; y: number }, topRight: { x: number; y: number }, bottomRight: { x: number; y: number }, bottomLeft: { x: number; y: number }): VNRectangleObservation
Swift declaration
convenience init(requestRevision: Int, topLeft: CGPoint, topRight: CGPoint, bottomRight: CGPoint, bottomLeft: CGPoint)
get · iOS 11.0+

bottomLeft

TypeScript
get bottomLeft(): { x: number; y: number }
Swift declaration
var bottomLeft: CGPoint { get }
get · iOS 11.0+

bottomRight

TypeScript
get bottomRight(): { x: number; y: number }
Swift declaration
var bottomRight: CGPoint { get }
get · iOS 11.0+

topLeft

TypeScript
get topLeft(): { x: number; y: number }
Swift declaration
var topLeft: CGPoint { get }
get · iOS 11.0+

topRight

TypeScript
get topRight(): { x: number; y: number }
Swift declaration
var topRight: CGPoint { get }

Skipped declarations

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

VNRectangleObservation.init()

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

All Vision types →