MeiCam SDK For iOS  3.10.0
NvsARFaceContext.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2016. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Dec 29. 2016
11 // Author: NewAuto video team
12 //================================================================================
13 #pragma once
14 
15 #import <Foundation/Foundation.h>
16 
25 typedef enum
27 {
32 
41 typedef enum
43 {
48 
57 typedef enum
59 {
68 
84  NvsObjectActionType_Hand_Ssh = 0x400000000000L
87 
88 @protocol NvsARFaceContextDelegate <NSObject>
89 @optional
90 
99 - (void)notifyFaceItemLoadingBegin:(NSString *)itemPath ;
100 
108 
119 - (void)notifyFaceItemLoadingFailed:(NSString *)itemPath error:(int) error ;
120 
135 - (void)notifyObjectLandmark:(NSArray*)landmark size:(int)objectCount type:(NvsObjectLandmarkType)type timeStamp:(int64_t)timestamp;
136 
145 - (void)notifyDetectedAction:(long long)actionType ;
146 @end
147 
157 @interface NvsARFaceContext : NSObject
158 
159 @property (nonatomic, weak) id<NvsARFaceContextDelegate> delegate;
160 
161 - (void)setInternalContext:(void *)internalContext;
162 
171 - (bool)isFaceTracking;
172 
183 - (bool)isObjectTracking:(NvsObjectTrackingType)trackingType;
184 
191 - (void)setReloadCurSticker;
192 
193 @end
NvsObjectActionType_Hand_Holdup
@ NvsObjectActionType_Hand_Holdup
holdup hand
Definition: NvsARFaceContext.h:76
NvsObjectActionType_Hand_Scissor
@ NvsObjectActionType_Hand_Scissor
scissor hand
Definition: NvsARFaceContext.h:71
NvsObjectActionType_Head_Yaw
@ NvsObjectActionType_Head_Yaw
head yaw
Definition: NvsARFaceContext.h:65
NvsObjectActionType_Hand_OK
@ NvsObjectActionType_Hand_OK
ok hand
Definition: NvsARFaceContext.h:70
NvsObjectTrackingType
NvsObjectTrackingType
Definition: NvsARFaceContext.h:27
NvsObjectActionType_Hand_Congratulate
@ NvsObjectActionType_Hand_Congratulate
congratulate hand
Definition: NvsARFaceContext.h:77
NvsObjectActionType_Hand_ILoveYou
@ NvsObjectActionType_Hand_ILoveYou
i love you
Definition: NvsARFaceContext.h:83
-[NvsARFaceContextDelegate-p notifyFaceItemLoadingFinish]
void notifyFaceItemLoadingFinish()
Notifies the completion of loading face props.
NvsObjectLandmarkType
NvsObjectLandmarkType
Definition: NvsARFaceContext.h:43
NvsObjectActionType_Face_Lips_Upward
@ NvsObjectActionType_Face_Lips_Upward
lips upward
Definition: NvsARFaceContext.h:61
NvsObjectActionType_Hand_Pistol
@ NvsObjectActionType_Hand_Pistol
pistol hand
Definition: NvsARFaceContext.h:74
NvsObjectActionType_Hand_Bless
@ NvsObjectActionType_Hand_Bless
bless
Definition: NvsARFaceContext.h:82
NvsObjectTrackingType_Animal
@ NvsObjectTrackingType_Animal
Detects animal.
Definition: NvsARFaceContext.h:29
NvsObjectActionType_Hand_Ssh
@ NvsObjectActionType_Hand_Ssh
shush
Definition: NvsARFaceContext.h:84
NvsObjectActionType_Hand_Finger_Index
@ NvsObjectActionType_Hand_Finger_Index
finger index
Definition: NvsARFaceContext.h:79
NvsObjectActionType_Head_Pitch
@ NvsObjectActionType_Head_Pitch
head pitch
Definition: NvsARFaceContext.h:66
NvsObjectActionType_Hand_666
@ NvsObjectActionType_Hand_666
666 hand
Definition: NvsARFaceContext.h:81
NvsObjectActionType_Hand_Detect
@ NvsObjectActionType_Hand_Detect
hand detected
Definition: NvsARFaceContext.h:69
NvsObjectDetectActionType
NvsObjectDetectActionType
Definition: NvsARFaceContext.h:59
-[NvsARFaceContext isFaceTracking]
bool isFaceTracking()
Check if face is being tracked.
NvsARFaceContextDelegate-p
Definition: NvsARFaceContext.h:88
NvsObjectTrackingType_Face
@ NvsObjectTrackingType_Face
Detects faces.
Definition: NvsARFaceContext.h:28
NvsObjectActionType_Brow_Jump
@ NvsObjectActionType_Brow_Jump
brow jump
Definition: NvsARFaceContext.h:67
NvsObjectActionType_Eye_Blink
@ NvsObjectActionType_Eye_Blink
eye blink
Definition: NvsARFaceContext.h:63
NvsObjectActionType_Hand_Fist
@ NvsObjectActionType_Hand_Fist
fist
Definition: NvsARFaceContext.h:80
NvsObjectActionType_Mouth_Ah
@ NvsObjectActionType_Mouth_Ah
mouth open
Definition: NvsARFaceContext.h:64
-[NvsARFaceContext setReloadCurSticker]
void setReloadCurSticker()
Reload current sticker.
NvsObjectLandmarkType_Face
@ NvsObjectLandmarkType_Face
face landmark
Definition: NvsARFaceContext.h:44
NvsObjectActionType_Hand_Palm
@ NvsObjectActionType_Hand_Palm
hand palm
Definition: NvsARFaceContext.h:73
NvsObjectActionType_Face_Lips_Pouted
@ NvsObjectActionType_Face_Lips_Pouted
face lips pouted
Definition: NvsARFaceContext.h:62
NvsObjectActionType_Face_Detect
@ NvsObjectActionType_Face_Detect
face detected
Definition: NvsARFaceContext.h:60
NvsARFaceContext::delegate
id< NvsARFaceContextDelegate > delegate
Definition: NvsARFaceContext.h:159
NvsARFaceContext
ARFace context.
Definition: NvsARFaceContext.h:158
NvsObjectLandmarkType_Animal
@ NvsObjectLandmarkType_Animal
animal landmark
Definition: NvsARFaceContext.h:45
NvsObjectActionType_Hand_Good
@ NvsObjectActionType_Hand_Good
good hand
Definition: NvsARFaceContext.h:72
NvsObjectActionType_Hand_Finger_Heart
@ NvsObjectActionType_Hand_Finger_Heart
finger heart
Definition: NvsARFaceContext.h:78
NvsObjectActionType_Hand_Love
@ NvsObjectActionType_Hand_Love
love hand
Definition: NvsARFaceContext.h:75