FIRVisionFaceContour.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #import <Foundation/Foundation.h>
  2. @class FIRVisionPoint;
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. * Facial contour types.
  6. */
  7. typedef NSString *FIRFaceContourType NS_EXTENSIBLE_STRING_ENUM NS_SWIFT_NAME(FaceContourType);
  8. /** All contour points including left and right cheeks. */
  9. extern FIRFaceContourType const FIRFaceContourTypeAll;
  10. /** A set of points that outline the face oval. */
  11. extern FIRFaceContourType const FIRFaceContourTypeFace;
  12. /** A set of points that outline the top of the left eyebrow. */
  13. extern FIRFaceContourType const FIRFaceContourTypeLeftEyebrowTop;
  14. /** A set of points that outline the bottom of the left eyebrow. */
  15. extern FIRFaceContourType const FIRFaceContourTypeLeftEyebrowBottom;
  16. /** A set of points that outline the top of the right eyebrow. */
  17. extern FIRFaceContourType const FIRFaceContourTypeRightEyebrowTop;
  18. /** A set of points that outline the bottom of the right eyebrow. */
  19. extern FIRFaceContourType const FIRFaceContourTypeRightEyebrowBottom;
  20. /** A set of points that outline the left eye. */
  21. extern FIRFaceContourType const FIRFaceContourTypeLeftEye;
  22. /** A set of points that outline the right eye. */
  23. extern FIRFaceContourType const FIRFaceContourTypeRightEye;
  24. /** A set of points that outline the top of the upper lip. */
  25. extern FIRFaceContourType const FIRFaceContourTypeUpperLipTop;
  26. /** A set of points that outline the bottom of the upper lip. */
  27. extern FIRFaceContourType const FIRFaceContourTypeUpperLipBottom;
  28. /** A set of points that outline the top of the lower lip. */
  29. extern FIRFaceContourType const FIRFaceContourTypeLowerLipTop;
  30. /** A set of points that outline the bottom of the lower lip. */
  31. extern FIRFaceContourType const FIRFaceContourTypeLowerLipBottom;
  32. /** A set of points that outline the nose bridge. */
  33. extern FIRFaceContourType const FIRFaceContourTypeNoseBridge;
  34. /** A set of points that outline the bottom of the nose. */
  35. extern FIRFaceContourType const FIRFaceContourTypeNoseBottom;
  36. /**
  37. * A contour on a human face detected in an image.
  38. */
  39. NS_SWIFT_NAME(VisionFaceContour)
  40. @interface FIRVisionFaceContour : NSObject
  41. /**
  42. * The facial contour type.
  43. */
  44. @property(nonatomic, readonly) FIRFaceContourType type;
  45. /**
  46. * An array of 2D points that make up the facial contour.
  47. */
  48. @property(nonatomic, readonly) NSArray<FIRVisionPoint *> *points;
  49. /**
  50. * Unavailable.
  51. */
  52. - (instancetype)init NS_UNAVAILABLE;
  53. @end
  54. NS_ASSUME_NONNULL_END