Skip to content

Commit

Permalink
fix(review)
Browse files Browse the repository at this point in the history
  • Loading branch information
trancee committed Sep 17, 2023
1 parent db89a72 commit 2720218
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions packages/face-mesh-detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ Represents a triangle with 3 generic points.

#### UseCase

| Members | Value | Description | Since |
| --------------------- | -------------- | ------------------------------------------------------------------------------------------- | ----- |
| **`BoundingBoxOnly`** | <code>0</code> | Return bounding box for detected face. | 5.3.0 |
| **`FaceMesh`** | <code>1</code> | 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`** | <code>0</code> | Return bounding box for detected face. | 5.3.0 |
| **`FaceMesh`** | <code>1</code> | Return face mesh info for detected face. It detects at most 2 faces in this use case. | 5.3.0 |

</docgen-api>

Expand Down
42 changes: 21 additions & 21 deletions packages/face-mesh-detection/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -230,69 +230,69 @@ 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.
*
* @since 5.3.0
*/
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,
}
2 changes: 1 addition & 1 deletion packages/face-mesh-detection/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
Expand Down

0 comments on commit 2720218

Please sign in to comment.