Type Method

faceObservationWithRequestRevision:boundingBox:roll:yaw:

Creates a face observation with the given revision number, bounding box, roll, and yaw.

Declaration

+ (instancetype)faceObservationWithRequestRevision:(NSUInteger)requestRevision boundingBox:(CGRect)boundingBox roll:(NSNumber *)roll yaw:(NSNumber *)yaw;

Discussion

The revision number specifies the version of Vision's algorithm the observation uses. Revision 1 is the version used in iOS 11. Revision 2 is the version used in iOS 12.