3DiVi Face SDK  3.24.0
 Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Свойства Группы
CallbackData.h
1 #import <Foundation/Foundation.h>
2 #import "RawSample.h"
3 #import "Template.h"
4 #import "Recognizer.h"
5 
6 typedef NS_ENUM(NSInteger, Verdict){
7  VERDICT_PASSED = 0,
8  VERDICT_FAILED = 1,
9  VERDICT_NOT_COMPUTED = 2
10 };
11 
12 typedef NS_ENUM(NSInteger, CheckType){
13  NONE = 0,
14  SMILE = 1,
15  BLINK = 2,
16  TURN_UP = 3,
17  TURN_DOWN = 4,
18  TURN_RIGHT = 5,
19  TURN_LEFT = 6,
20  PERSPECTIVE = 7
21 };
22 
23 typedef NS_ENUM(NSInteger, Liveness){
24  ALL_CHECKS_PASSED = 0,
25  CURRENT_CHECK_PASSED = 1,
26  CHECK_FAIL = 2,
27  WAITING_FACE_ALIGN = 3,
28  IN_PROGRESS = 4,
29  NOT_COMPUTED = 5,
30 };
31 
32 
33 typedef NS_ENUM(NSInteger, Age){
34  AGE_KIT = 0,
35  AGE_YONG = 1,
36  AGE_ADULT = 2,
37  AGE_SENIOR = 3
38 };
39 
40 typedef NS_ENUM(NSInteger, Gender){
41  GENDER_FEMALE = 0,
42  GENDER_MALE = 1,
43 };
44 
45 typedef NS_ENUM(NSInteger, Emotion){
46  EMOTION_NEUTRAL = 0,
47  EMOTION_HAPPY = 1,
48  EMOTION_ANGRY = 2,
49  EMOTION_SURPRISE = 3
50 };
51 
52 @interface ActiveLivenessStatus : NSObject{
53  Liveness verdict;
54  CheckType check_type;
55  float progress_level;
56 }
57 
58 -(nonnull instancetype) init;
59 -(nonnull instancetype) init: (void* _Nullable) active_liveness;
60 
61 @property Liveness verdict;
62 @property CheckType check_type;
63 @property float progress_level;
64 @end
65 
66 @interface AgeGender : NSObject
67 {
68  Age age;
69  Gender gender;
70  float age_year;
71 }
72 
73 -(nonnull instancetype) init: (void* _Nullable) age_gender;
74 
75 @property Age age;
76 @property Gender gender;
77 @property float age_year;
78 @end
79 
80 @interface EmotionsConfidence : NSObject
81 {
82  float confidence;
83  Emotion emotion;
84 
85 }
86 -(nonnull instancetype) init: (void* _Nullable) emotions_confidence;
87 @property Emotion emotion;
88 @property float confidence;
89 @end
90 
91 @interface SearchResult : NSObject
92 {
93  UInt64 person_id;
94  UInt64 element_id;
95  MatchResult *match_result;
96 }
97 
98 -(nonnull instancetype) init: (void* _Nonnull) search_result;
99 
100 @property UInt64 person_id;
101 @property UInt64 element_id;
102 @property (readonly, nonnull) MatchResult *match_result;
103 @end
104 
105 //======TrackingCallbackData=====
106 @interface TrackingCallbackData : NSObject
107 {
108  void *trackin_callback;
109  int64_t stream_id;
110  int64_t frame_id;
111  NSMutableArray<RawSample *> *samples; //raw_samples
112  NSMutableArray *samples_track_id; //int
113  NSMutableArray *samples_week; //bool
114  NSMutableArray *samples_quality; //float
115  NSMutableArray *samples_good_light_and_blur; //Verdict
116  NSMutableArray *samples_good_andles; //Verdict
117  NSMutableArray *samples_good_face_size; //Verdict
118  NSMutableArray *samples_detector_confirmed; //Verdict
119  NSMutableArray *samples_depth_liveness_confirmed;
120  NSMutableArray *samples_track_age_gender_set; //bool
121  NSMutableArray *samples_track_age_gender; //AgeGender
122  NSMutableArray *samples_track_emotions_set; //bool
123  NSMutableArray *samples_track_emotions; //EmptionConfidence
124  NSMutableArray *samples_active_liveness_status;
125 
126 }
127 -(nonnull instancetype) init;
128 -(nonnull instancetype) init: (void *_Nonnull)callback;
129 -(void) dealloc;
130 
131 @property (readonly) int64_t stream_id;
132 @property (readonly) int64_t frame_id;
133 @property (readonly, nonnull) NSMutableArray<RawSample *> *samples; //raw_samples
134 @property (readonly, nonnull) NSMutableArray *samples_track_id; //int
135 @property (readonly, nonnull) NSMutableArray *samples_week; //bool
136 @property (readonly, nonnull) NSMutableArray *samples_quality; //float
137 @property (readonly, nonnull) NSMutableArray *samples_good_light_and_blur; //Verdict
138 @property (readonly, nonnull) NSMutableArray *samples_good_andles; //Verdict
139 @property (readonly, nonnull) NSMutableArray *samples_good_face_size; //Verdict
140 @property (readonly, nonnull) NSMutableArray *samples_detector_confirmed; //Verdict
141 @property (readonly, nonnull) NSMutableArray *samples_depth_liveness_confirmed;
142 @property (readonly, nonnull) NSMutableArray *samples_track_age_gender_set; //bool
143 @property (readonly, nonnull) NSMutableArray *samples_track_age_gender; //AgeGender
144 @property (readonly, nonnull) NSMutableArray *samples_track_emotions_set; //bool
145 @property (readonly, nonnull) NSMutableArray *samples_track_emotions; //EmptionConfidence
146 @property (readonly, nonnull) NSMutableArray *samples_active_liveness_status;
147 @end
148 
149 
150 @interface MatchFoundCallbackData : NSObject
151 {
152  void* match_found;
153 
154  int64_t stream_id;
155  int64_t frame_id;
156  RawSample *sample;
157  double quality;
158  Template *templ;
159  NSMutableArray *search_results;
160 }
161 -(nonnull instancetype) init: (void* _Nonnull)callback;
162 -(void) dealloc;
163 
164 @property (readonly) int64_t stream_id;
165 @property (readonly) int64_t frame_id;
166 @property (readonly, nonnull) RawSample *sample;
167 @property (readonly) double quality;
168 @property (readonly, nonnull) Template *templ;
169 @property (readonly, nonnull) NSMutableArray *search_results;
170 @end
Результат сравнения шаблонов.
Definition: Recognizer.h:15
Definition: CallbackData.h:66
Definition: CallbackData.h:106
Definition: CallbackData.h:80
Интерфейсный объект для сохранения шаблона лица.
Definition: Template.h:13
Definition: CallbackData.h:150
Definition: CallbackData.h:91
Интерфейсный объект, хранящий образец лица.
Definition: RawSample.h:125
Definition: CallbackData.h:52
typedef NS_ENUM(int32_t, CtxFormat)
Формат данных изображения.
Definition: Context.h:14