FIRVisionFaceLandmark.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #import <CoreGraphics/CoreGraphics.h>
  2. #import <Foundation/Foundation.h>
  3. @class FIRVisionPoint;
  4. NS_ASSUME_NONNULL_BEGIN
  5. /**
  6. * Type of all facial landmarks.
  7. */
  8. typedef NSString *FIRFaceLandmarkType NS_EXTENSIBLE_STRING_ENUM NS_SWIFT_NAME(FaceLandmarkType);
  9. /** Center of the bottom lip. */
  10. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeMouthBottom;
  11. /** Right corner of the mouth */
  12. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeMouthRight;
  13. /** Left corner of the mouth */
  14. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeMouthLeft;
  15. /** Midpoint of the left ear tip and left ear lobe. */
  16. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeLeftEar;
  17. /** Midpoint of the right ear tip and right ear lobe. */
  18. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeRightEar;
  19. /** Left eye. */
  20. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeLeftEye;
  21. /** Right eye. */
  22. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeRightEye;
  23. /** Left cheek. */
  24. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeLeftCheek;
  25. /** Right cheek. */
  26. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeRightCheek;
  27. /** Midpoint between the nostrils where the nose meets the face. */
  28. extern FIRFaceLandmarkType const FIRFaceLandmarkTypeNoseBase;
  29. /**
  30. * A landmark on a human face detected in an image.
  31. */
  32. NS_SWIFT_NAME(VisionFaceLandmark)
  33. @interface FIRVisionFaceLandmark : NSObject
  34. /**
  35. * The type of the facial landmark.
  36. */
  37. @property(nonatomic, readonly) FIRFaceLandmarkType type;
  38. /**
  39. * 2D position of the facial landmark.
  40. */
  41. @property(nonatomic, readonly) FIRVisionPoint *position;
  42. /**
  43. * Unavailable.
  44. */
  45. - (instancetype)init NS_UNAVAILABLE;
  46. @end
  47. NS_ASSUME_NONNULL_END