3DiVi Face SDK  3.24.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
FacerecService.h
1 #import <Foundation/Foundation.h>
2 
3 #import "VideoWorker.h"
4 #import "Recognizer.h"
5 #import "Capturer.h"
6 #import "Context.h"
7 #import "ProcessingBlock.h"
8 
18 @interface CounterState : NSObject
19 {
20 
21  NSString *name;
22  int value;
23  int max_value;
24 }
25 
30 @property (nonnull) NSString *name;
31 
36 @property int value;
37 
42 @property int max_value;
43 @end
44 
50 @interface LicenseState : NSObject
51 {
52  bool online;
53  NSString *android_app_id;
54  NSString *android_serial;
55  NSString *ios_app_id;
56  NSString *hardware_reg;
57 
58  NSMutableArray *counters;
59 }
60 
65 @property bool online;
66 
71 @property (nonnull) NSString *android_app_id;
72 
77 @property (nonnull) NSString *android_serial;
78 
83 @property (nonnull) NSString *ios_app_id;
84 
89 @property (nonnull) NSString *hardware_reg;
90 
95 @property (nonnull) NSMutableArray *counters;
96 @property (nonatomic, nonnull) NSString *ios;
97 
98 @end
99 
105 @interface Config : NSObject{
106  void *config;
107  const char* file_path;
108 }
109 -(nonnull instancetype) init: (const char*_Nonnull) path;
110 -(void) dealloc;
111 
139 -(nonnull instancetype) overrideParameter: (const char*_Nonnull) parametr : (const double) value;
140 @property (readonly) void* _Nonnull config;
141 @end
142 
148 @interface Params : NSObject{
149 
150  Config *video_worker_config;
151  Config *recognizer_config;
152  int streams_count;
153  int processing_threads_count;
154  int matching_threads_count;
155  int age_gender_estimation_threads_count;
156  int emotions_estimation_threads_count;
157  NSMutableArray* active_liveness_checks_order;
158 }
159 -(nonnull instancetype) init;
160 
165 @property (nonnull) Config *video_worker_config;
166 
171 @property (nonnull) Config *recognizer_config;
172 
177 @property int streams_count;
178 
183 @property int processing_threads_count;
184 
189 @property int matching_threads_count;
190 
195 @property int age_gender_estimation_threads_count;
196 
201 @property int emotions_estimation_threads_count;
202 
207 @property NSMutableArray* _Nullable active_liveness_checks_order;
208 
209 @property (readonly, nonnull) void* params;
210 @end
211 
212 
218 @interface FacerecService : NSObject
219 {
220  void *service;
221 }
222 
223 -(nonnull instancetype)init;
224 -(nonnull instancetype)init: (const char*_Nonnull) lib_path : (const char*_Nonnull) conf_path : (const char*_Nonnull) license_path;
225 
226 -(void) dealloc;
227 
235 -(nonnull NSString *) getVersion;
236 
280 -(nonnull Recognizer *) createRecognizer: (Config* _Nonnull) config : (const bool) processing : (const bool) matching : (const bool)processing_less_memory_consumption;
281 
323 -(nonnull VideoWorker *) createVideoWorker: (Config* _Nonnull) config : (const char * _Nonnull) recognizer_ini_file : (const int) streams_count : (const int) processing_threads_count : (const int) matching_threads_count;
324 
356 -(nonnull VideoWorker *) createVideoWorker: (Params *_Nonnull)params;
357 
383 -(nonnull Capturer *) createCapturer: (Config* _Nonnull) config;
384 
393 -(nonnull Context *) createContext;
394 
407 -(nonnull Context *) createContextFromEncodedImage: (uint8_t* _Nonnull) data : (uint64_t) dataSize;
408 
427 -(nonnull Context *) createContextFromFrame: (uint8_t* _Nonnull) data : (int) width : (int) height : (int) format : (int) baseAngle;
428 
439 -(nonnull Context *) createContextCMSampleBuffer: (CMSampleBufferRef _Nullable)sampleBuffer : (int) format;
440 
451 -(nonnull ProcessingBlock*) createProcessingBlock: (Context* _Nonnull) config;
452 
460 -(nonnull LicenseState *) getLicenseState;
461 @end
462 
463 
Interface object used to work with estimators from Processing Block API.
Definition: ProcessingBlock.h:16
Definition: Recognizer.h:64
Definition: FacerecService.mm:283
Definition: FacerecService.mm:291
Definition: FacerecService.mm:272
Definition: FacerecService.mm:315
Interface object for detecting or tracking of faces in the images or video sequences.
Definition: Capturer.h:16
VideoWorker is an interface object for tracking, processing and matching faces on multiple video stre...
Definition: VideoWorker.h:105
Context is an interface object for storing data and interacting with methods from the Processing Bloc...
Definition: Context.h:65
Definition: FacerecService.mm:79