Vision iOS 15.5 to 16.0 API Differences

VNDetectBarcodesRequest.h
Added VNDetectBarcodesRequestRevision3
VNDetectContoursRequest.h
Modified VNDetectContoursRequest.contrastPivot
Declaration
From@property (nonatomic, readwrite, nullable) NSNumber *contrastPivot
To@property (nonatomic, readwrite, strong, nullable) NSNumber *contrastPivot

VNDetectFaceLandmarksRequest.h
Modified VNDetectFaceLandmarksRequestRevision1
Availability
FromAvailable
ToDeprecated

VNDetectFaceRectanglesRequest.h
Modified VNDetectFaceRectanglesRequestRevision1
Availability
FromAvailable
ToDeprecated

VNError.h
Added VNErrorTuriCoreErrorCode
Added VNErrorTimeout
VNFaceLandmarks.h
Added VNFaceLandmarkRegion2D.pointsClassification
VNGenerateOpticalFlowRequest.h
Added VNGenerateOpticalFlowRequest.keepNetworkOutput
Added VNGenerateOpticalFlowRequestRevision2
Modified VNGenerateOpticalFlowRequest.computationAccuracy
Declaration
From@property (nonatomic, readwrite) VNGenerateOpticalFlowRequestComputationAccuracy computationAccuracy
To@property (nonatomic, readwrite, assign) VNGenerateOpticalFlowRequestComputationAccuracy computationAccuracy

Modified VNGenerateOpticalFlowRequest.outputPixelFormat
Declaration
From@property (nonatomic, readwrite) OSType outputPixelFormat
To@property (nonatomic, readwrite, assign) OSType outputPixelFormat

VNObservation.h
Added -[VNHorizonObservation transformForImageWidth:height:]
VNRecognizeTextRequest.h
Added VNRecognizeTextRequest.automaticallyDetectsLanguage
Added VNRecognizeTextRequestRevision3
VNTypes.h
Added VNImageCropAndScaleOptionScaleFitRotate90CCW
Added VNImageCropAndScaleOptionScaleFillRotate90CCW
Added VNPointsClassification
Added VNPointsClassificationDisconnected
Added VNPointsClassificationOpenPath
Added VNPointsClassificationClosedPath