常量
以下常量可在全局范围内使用。
-
一组用于勾勒出面部椭圆形的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeFace
-
一组用于勾勒左眉毛上部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLeftEyebrowTop
-
一组用于勾勒左眉毛底部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLeftEyebrowBottom
-
一组用于勾勒右眉毛上端的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeRightEyebrowTop
-
一组用于勾勒右眉毛底部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeRightEyebrowBottom
-
一组用于勾勒左眼的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLeftEye
-
一组用于勾勒右眼的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeRightEye
-
一组用于勾勒上唇顶部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeUpperLipTop
-
一组用于勾勒上唇底部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeUpperLipBottom
-
一组用于勾勒下唇顶部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLowerLipTop
-
一组用于勾勒下唇底部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLowerLipBottom
-
一组用于勾勒鼻梁的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeNoseBridge
-
一组可勾勒出鼻子底部的点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeNoseBottom
-
左脸颊的中心点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeLeftCheek
-
右侧脸颊的中心点。
声明
Objective-C
extern const MLKFaceContourType _Nonnull MLKFaceContourTypeRightCheek
-
人脸分类模式,表示检测器不执行任何分类。
声明
Objective-C
static const MLKFaceDetectorClassificationMode MLKFaceDetectorClassificationModeNone = 1
-
人脸分类模式,表示检测器会执行所有分类。
声明
Objective-C
static const MLKFaceDetectorClassificationMode MLKFaceDetectorClassificationModeAll = 2
-
人脸检测性能模式,运行速度更快,但检测到的人脸会减少并/或返回 结果准确率较低。
声明
Objective-C
static const MLKFaceDetectorPerformanceMode MLKFaceDetectorPerformanceModeFast = 1
-
人脸检测性能模式,运行速度较慢,但可能会检测到更多人脸并/或返回 获得更准确的结果。
声明
Objective-C
static const MLKFaceDetectorPerformanceMode MLKFaceDetectorPerformanceModeAccurate = 2
-
人脸特征点模式,表示检测器不执行任何特征点检测。
声明
Objective-C
static const MLKFaceDetectorLandmarkMode MLKFaceDetectorLandmarkModeNone = 1
-
人脸特征点模式,表示检测器执行特征点检测。
声明
Objective-C
static const MLKFaceDetectorLandmarkMode MLKFaceDetectorLandmarkModeAll = 2
-
脸部轮廓模式,指示检测器不执行轮廓检测。
声明
Objective-C
static const MLKFaceDetectorContourMode MLKFaceDetectorContourModeNone = 1
-
脸部轮廓模式,指示检测器执行轮廓检测。
声明
Objective-C
static const MLKFaceDetectorContourMode MLKFaceDetectorContourModeAll = 2
-
下唇的中心。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeMouthBottom
-
嘴角
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeMouthRight
-
嘴角左角
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeMouthLeft
-
左耳尖与左耳垂的中点。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeLeftEar
-
右耳尖和右耳垂的中点。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeRightEar
-
左眼。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeLeftEye
-
右眼。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeRightEye
-
左脸颊。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeLeftCheek
-
右脸颊。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeRightCheek
-
两个鼻孔之间的中点,即鼻子与面部之间的连接。
声明
Objective-C
extern const MLKFaceLandmarkType _Nonnull MLKFaceLandmarkTypeNoseBase