Class VNFaceObservation

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, VNRequestRevisionProviding, ObjCProtocol

public class VNFaceObservation
extends VNDetectedObjectObservation
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • VNFaceObservation

      public VNFaceObservation()
    • VNFaceObservation

      protected VNFaceObservation​(NSObject.Handle h, long handle)
    • VNFaceObservation

      protected VNFaceObservation​(NSObject.SkipInit skipInit)
    • VNFaceObservation

      @Deprecated public VNFaceObservation​(long requestRevision, CGRect boundingBox, NSNumber roll, NSNumber yaw)
      Deprecated.
      Deprecated in iOS 15.0. Use -faceObservationWithRequestRevision:boundingBox:roll:yaw:
      Since:
      Available in iOS 12.0 and later.
    • VNFaceObservation

      public VNFaceObservation​(long requestRevision, CGRect boundingBox, NSNumber roll, NSNumber yaw, NSNumber pitch)
      Since:
      Available in iOS 15.0 and later.
  • Method Details

    • getLandmarks

      public VNFaceLandmarks2D getLandmarks()
    • getFaceCaptureQuality

      public NSNumber getFaceCaptureQuality()
      Since:
      Available in iOS 13.0 and later.
    • getRoll

      public NSNumber getRoll()
      Since:
      Available in iOS 12.0 and later.
    • getYaw

      public NSNumber getYaw()
      Since:
      Available in iOS 12.0 and later.
    • getPitch

      public NSNumber getPitch()
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • create

      @Deprecated protected static long create​(long requestRevision, CGRect boundingBox, NSNumber roll, NSNumber yaw)
      Deprecated.
      Deprecated in iOS 15.0. Use -faceObservationWithRequestRevision:boundingBox:roll:yaw:
      Since:
      Available in iOS 12.0 and later.
    • create

      protected static long create​(long requestRevision, CGRect boundingBox, NSNumber roll, NSNumber yaw, NSNumber pitch)
      Since:
      Available in iOS 15.0 and later.