Vision macOS 12.3 to 13.0 API Differences

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

VNDetectFaceLandmarksRequest.h
Modified VNDetectFaceLandmarksRequestRevision1
AvailabilityReplacement
FromAvailablenone
ToDeprecatedVNDetectFaceLandmarksRequestRevision2

VNDetectFaceRectanglesRequest.h
Modified VNDetectFaceRectanglesRequestRevision1
AvailabilityReplacement
FromAvailablenone
ToDeprecatedVNDetectFaceRectanglesRequestRevision2

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