diff --git a/packages/face-mesh-detection/README.md b/packages/face-mesh-detection/README.md index 5653000..fced07e 100644 --- a/packages/face-mesh-detection/README.md +++ b/packages/face-mesh-detection/README.md @@ -156,10 +156,10 @@ Represents a triangle with 3 generic points. #### UseCase -| Members | Value | Description | Since | -| --------------------- | -------------- | ------------------------------------------------------------------------------------------- | ----- | -| **`BoundingBoxOnly`** | 0 | Return bounding box for detected face. | 5.3.0 | -| **`FaceMesh`** | 1 | Return face mesh info for detected face. It returns at most 2 `FaceMesh`s in this use case. | 5.3.0 | +| Members | Value | Description | Since | +| --------------------- | -------------- | ------------------------------------------------------------------------------------- | ----- | +| **`BoundingBoxOnly`** | 0 | Return bounding box for detected face. | 5.3.0 | +| **`FaceMesh`** | 1 | Return face mesh info for detected face. It detects at most 2 faces in this use case. | 5.3.0 | diff --git a/packages/face-mesh-detection/src/definitions.ts b/packages/face-mesh-detection/src/definitions.ts index 8ab375f..8dcb9a0 100644 --- a/packages/face-mesh-detection/src/definitions.ts +++ b/packages/face-mesh-detection/src/definitions.ts @@ -63,7 +63,7 @@ export enum UseCase { BoundingBoxOnly = 0, /** * Return face mesh info for detected face. - * It returns at most 2 `FaceMesh`s in this use case. + * It detects at most 2 faces in this use case. * * @since 5.3.0 * @see https://developers.google.com/android/reference/com/google/mlkit/vision/facemesh/FaceMeshDetectorOptions#public-static-final-int-face_mesh @@ -230,11 +230,11 @@ export enum ContourType { */ FaceOval = 1, /** - * The outline of the subject's left eye cavity. + * The top outline of the subject's left eyebrow. * * @since 5.3.0 */ - LeftEye = 6, + LeftEyebrowTop = 2, /** * The bottom outline of the subject's left eyebrow. * @@ -242,57 +242,57 @@ export enum ContourType { */ LeftEyebrowBottom = 3, /** - * The top outline of the subject's left eyebrow. + * The top outline of the subject's right eyebrow. * * @since 5.3.0 */ - LeftEyebrowTop = 2, + RightEyebrowTop = 4, /** - * The bottom outline of the subject's lower lip. + * The bottom outline of the subject's right eyebrow. * * @since 5.3.0 */ - LowerLipBottom = 11, + RightEyebrowBottom = 5, /** - * The top outline of the subject's lower lip. + * The outline of the subject's left eye cavity. * * @since 5.3.0 */ - LowerLipTop = 10, + LeftEye = 6, /** - * The outline of the subject's nose bridge. + * The outline of the subject's right eye cavity. * * @since 5.3.0 */ - NoseBridge = 12, + RightEye = 7, /** - * The outline of the subject's right eye cavity. + * The top outline of the subject's upper lip. * * @since 5.3.0 */ - RightEye = 7, + UpperLipTop = 8, /** - * The bottom outline of the subject's right eyebrow. + * The bottom outline of the subject's upper lip. * * @since 5.3.0 */ - RightEyebrowBottom = 5, + UpperLipBottom = 9, /** - * The top outline of the subject's right eyebrow. + * The top outline of the subject's lower lip. * * @since 5.3.0 */ - RightEyebrowTop = 4, + LowerLipTop = 10, /** - * The bottom outline of the subject's upper lip. + * The bottom outline of the subject's lower lip. * * @since 5.3.0 */ - UpperLipBottom = 9, + LowerLipBottom = 11, /** - * The top outline of the subject's upper lip. + * The outline of the subject's nose bridge. * * @since 5.3.0 */ - UpperLipTop = 8, + NoseBridge = 12, } diff --git a/packages/face-mesh-detection/src/web.ts b/packages/face-mesh-detection/src/web.ts index 1e48027..e10db69 100644 --- a/packages/face-mesh-detection/src/web.ts +++ b/packages/face-mesh-detection/src/web.ts @@ -18,7 +18,7 @@ export class FaceMeshDetectionWeb private createUnavailableException(): CapacitorException { return new CapacitorException( - 'This Selfie Segmentation plugin method is not available on this platform.', + 'This Face Mesh Detection plugin method is not available on this platform.', ExceptionCode.Unavailable, ); }