MMFacialExpressionDetector
表情检测器,根据MMFaceDetector
(需提前开启检测器advancedExpressionDetectionEnabled
字段)回吐的MMFaceFeature
作为入参,检测表情。
1. 构造方法
- 同步构造方法
MMFacialExpressionDetector *detector = [[MCCDetectorsCenter sharedInstance] syncMakeFaceDetector:MCCFaceDetectorTypeFacialExpression];
2. 检测方法
- 入参是
MMFaceDetector
的单张脸数据,回吐多表情数组
- (NSArray<MMFacialExpression *> *)updateWithFaceFeature:(nullable MMFaceFeature *)faceFeature;
2.1. MMFacialExpression 介绍
表情类型 (张嘴,眨眼,微笑,点头)
@property (nonatomic,readonly) MMFacialExpressionType type;
表情幅度 0~1 之间
@property (nonatomic,readonly) float amount;
3. 重制方法
重制之前所有检测数据
- (void)reset;