You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.7 KiB
56 lines
1.7 KiB
//
|
|
// ToygerFaceFrame.h
|
|
// ToygerAlgorithm
|
|
//
|
|
// Created by 王伟伟 on 2018/1/22.
|
|
// Copyright © 2018年 DTF. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <ToygerService/ToygerFrame.h>
|
|
|
|
typedef NS_ENUM(NSInteger, ToygerMessage) {
|
|
TOYGER_Message_Image_Perfect = 0,
|
|
TOYGER_Message_No_Face,
|
|
TOYGER_Message_Distance_Too_Far,
|
|
TOYGER_Message_Distance_Too_Close,
|
|
TOYGER_Message_Face_Not_In_Center,
|
|
TOYGER_Message_Bad_Pitch,
|
|
TOYGER_Message_Bad_Yaw,
|
|
TOYGER_Message_Is_Moving,
|
|
TOYGER_Message_Bad_Brightness,
|
|
TOYGER_Message_Bad_Quality,
|
|
TOYGER_Message_Bad_Eye_Openness,
|
|
TOYGER_Message_Blink_Openness,
|
|
TOYGER_Message_Left_Yaw,
|
|
TOYGER_Message_Right_Yaw,
|
|
TOYGER_Message_Mouth_Open,
|
|
TOYGER_Message_Lip_Move,
|
|
TOYGER_Message_Stack_Time,
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, ToygerStaticMessage) {
|
|
TOYGER_Static_Message_NoLiveness = 0,
|
|
TOYGER_Static_Message_BlinkLiveness,
|
|
TOYGER_Static_Message_LeftYAWLiveness,
|
|
TOYGER_Static_Message_RightYawLiveness,
|
|
TOYGER_Static_Message_LipMoveLiveness,
|
|
TOYGER_Static_Message_MouthOpenLiveness
|
|
};
|
|
|
|
@interface ToygerFaceFrame : ToygerFrame<NSCopying>
|
|
|
|
@property (nonatomic, assign) ToygerMessage message;
|
|
@property (nonatomic, assign) ToygerStaticMessage staticMessage;
|
|
@property (nonatomic, assign) BOOL has_face;
|
|
@property (nonatomic, assign) int brightness;
|
|
@property (nonatomic, assign) int distance;
|
|
@property (nonatomic, assign) BOOL face_in_center;
|
|
@property (nonatomic, assign) BOOL is_moving;
|
|
@property (nonatomic, assign) BOOL good_quality;
|
|
@property (nonatomic, assign) BOOL good_pitch;
|
|
@property (nonatomic, assign) BOOL good_yaw;
|
|
@property (nonatomic, assign) BOOL eyeBlink;
|
|
@property (nonatomic, assign) CGFloat progress;
|
|
|
|
@end
|