| class info |
| com.huawei.hms.mlsdk.face.MLFaceKeyPoint |
| 人脸关键点,表示检测到的人脸上的一个点。关键点类型包括: TYPE_BOTTOM_OF_MOUTH:值为1,代表下嘴唇的中心点; TYPE_LEFT_CHEEK:值为2,代表左脸颊的中心点; TYPE_LEFT_EAR:值为3,代表左耳屏的中心点; TYPE_TIP_OF_LEFT_EAR:值为4,代表左耳顶点; TYPE_LEFT_EYE:值为5,代表左眼球的中心点; TYPE_LEFT_SIDE_OF_MOUTH:值为6,代表左嘴角位置点; TYPE_TIP_OF_NOSE:值为7,代表鼻尖中心点; TYPE_RIGHT_CHEEK:值为8,代表右脸颊的中心点; TYPE_RIGHT_EAR:值为9,代表右耳屏的中心点; TYPE_TIP_OF_RIGHT_EAR:值为10,代表右耳顶点; TYPE_RIGHT_EYE:值为11,代表右眼球的中心点; TYPE_RIGHT_SIDE_OF_MOUTH:值为12,代表右嘴角位置点。 注意:文中所说的“左”、“右”,均指的是面向图像时你的左右,并非图像中人脸的左右。 |
| Type | Name | Desc |
| int | TYPE_BOTTOM_OF_MOUTH | 下嘴唇的中心点。 |
| int | TYPE_LEFT_CHEEK | 左脸颊的中心点。 |
| int | TYPE_LEFT_EAR | 左耳屏的中心点。 |
| int | TYPE_LEFT_EYE | 左眼球的中心点。 |
| int | TYPE_LEFT_SIDE_OF_MOUTH | 左嘴角位置点。 |
| int | TYPE_RIGHT_CHEEK | 右脸颊的中心点。 |
| int | TYPE_RIGHT_EAR | 右耳屏的中心点。 |
| int | TYPE_RIGHT_EYE | 右眼球的中心点。 |
| int | TYPE_RIGHT_SIDE_OF_MOUTH | 右嘴角位置点。 |
| int | TYPE_TIP_OF_LEFT_EAR | 左耳顶点。 |
| int | TYPE_TIP_OF_NOSE | 鼻尖中心点。 |
| int | TYPE_TIP_OF_RIGHT_EAR | 右耳顶点。 |
| Return type | Method name |
| MLPosition | getPoint() |
| int | getType() |
| String | toString() |
| Constant |
| public static final int TYPE_BOTTOM_OF_MOUTH |
| 下嘴唇的中心点。 |
| Constant Value: 1 |
| Constant |
| public static final int TYPE_LEFT_CHEEK |
| 左脸颊的中心点。 |
| Constant Value: 2 |
| Constant |
| public static final int TYPE_LEFT_EAR |
| 左耳屏的中心点。 |
| Constant Value: 3 |
| Constant |
| public static final int TYPE_LEFT_EYE |
| 左眼球的中心点。 |
| Constant Value: 5 |
| Constant |
| public static final int TYPE_LEFT_SIDE_OF_MOUTH |
| 左嘴角位置点。 |
| Constant Value: 6 |
| Constant |
| public static final int TYPE_RIGHT_CHEEK |
| 右脸颊的中心点。 |
| Constant Value: 8 |
| Constant |
| public static final int TYPE_RIGHT_EAR |
| 右耳屏的中心点。 |
| Constant Value: 9 |
| Constant |
| public static final int TYPE_RIGHT_EYE |
| 右眼球的中心点。 |
| Constant Value: 11 |
| Constant |
| public static final int TYPE_RIGHT_SIDE_OF_MOUTH |
| 右嘴角位置点。 |
| Constant Value: 12 |
| Constant |
| public static final int TYPE_TIP_OF_LEFT_EAR |
| 左耳顶点。 |
| Constant Value: 4 |
| Constant |
| public static final int TYPE_TIP_OF_NOSE |
| 鼻尖中心点。 |
| Constant Value: 7 |
| Constant |
| public static final int TYPE_TIP_OF_RIGHT_EAR |
| 右耳顶点。 |
| Constant Value: 10 |
| Method |
| public MLPosition getPoint() |
| 获取人脸关键点的(x, y, z)位置,其中(0, 0, 0)是图像的左上角。 |
Return
| Type | desc |
| MLPosition | 返回MLPosition的实例,当前MLPosition类的z参数保留,值为0。 |
| Method |
| public int getType() |
| 获取人脸关键点类型。 |
Return
| Type | desc |
| int | 返回人脸关键点类型。 |
| Method |
| public String toString() |
| 当前实例转换为字符串。 |
Return
| Type | desc |
| String | 当前实例的字符串。 |