3DiVi Face SDK  3.25.0
 Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Свойства Группы
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 "ContextTemplate.h"
8 #import "DynamicTemplateIndex.h"
9 #import "ProcessingBlock.h"
10 
20 @interface CounterState : NSObject
21 {
22 
23  NSString *name;
24  int value;
25  int max_value;
26 }
27 
32 @property (nonnull) NSString *name;
33 
38 @property int value;
39 
44 @property int max_value;
45 @end
46 
52 @interface LicenseState : NSObject
53 {
54  bool online;
55  NSString *android_app_id;
56  NSString *android_serial;
57  NSString *ios_app_id;
58  NSString *hardware_reg;
59 
60  NSMutableArray *counters;
61 }
62 
67 @property bool online;
68 
73 @property (nonnull) NSString *android_app_id;
74 
79 @property (nonnull) NSString *android_serial;
80 
85 @property (nonnull) NSString *ios_app_id;
86 
91 @property (nonnull) NSString *hardware_reg;
92 
97 @property (nonnull) NSMutableArray *counters;
98 @property (nonatomic, nonnull) NSString *ios;
99 
100 @end
101 
107 @interface Config : NSObject{
108  void *config;
109  const char* file_path;
110 }
111 -(nonnull instancetype) init: (const char*_Nonnull) path;
112 -(void) dealloc;
113 
141 -(nonnull instancetype) overrideParameter: (const char*_Nonnull) parametr : (const double) value;
142 @property (readonly) void* _Nonnull config;
143 @end
144 
150 @interface Params : NSObject{
151 
152  Config *video_worker_config;
153  Config *recognizer_config;
154  int streams_count;
155  int processing_threads_count;
156  int matching_threads_count;
157  int age_gender_estimation_threads_count;
158  int emotions_estimation_threads_count;
159  NSMutableArray* active_liveness_checks_order;
160 }
161 -(nonnull instancetype) init;
162 
167 @property (nonnull) Config *video_worker_config;
168 
173 @property (nonnull) Config *recognizer_config;
174 
179 @property int streams_count;
180 
185 @property int processing_threads_count;
186 
191 @property int matching_threads_count;
192 
197 @property int age_gender_estimation_threads_count;
198 
203 @property int emotions_estimation_threads_count;
204 
209 @property NSMutableArray* _Nullable active_liveness_checks_order;
210 
211 @property (readonly, nonnull) void* params;
212 @end
213 
214 
220 @interface FacerecService : NSObject
221 {
222  void *service;
223 }
224 
225 -(nonnull instancetype)init;
226 -(nonnull instancetype)init: (const char*_Nonnull) lib_path : (const char*_Nonnull) conf_path : (const char*_Nonnull) license_path;
227 
228 -(void) dealloc;
229 
237 -(nonnull NSString *) getVersion;
238 
282 -(nonnull Recognizer *) createRecognizer: (Config* _Nonnull) config : (const bool) processing : (const bool) matching : (const bool)processing_less_memory_consumption;
283 
325 -(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;
326 
358 -(nonnull VideoWorker *) createVideoWorker: (Params *_Nonnull)params;
359 
385 -(nonnull Capturer *) createCapturer: (Config* _Nonnull) config;
386 
395 -(nonnull Context *) createContext;
396 
409 -(nonnull Context *) createContextFromEncodedImage: (uint8_t* _Nonnull) data : (uint64_t) dataSize;
410 
429 -(nonnull Context *) createContextFromFrame: (uint8_t* _Nonnull) data : (int) width : (int) height : (int) format : (int) baseAngle;
430 
441 -(nonnull Context *) createContextCMSampleBuffer: (CMSampleBufferRef _Nullable)sampleBuffer : (int) format;
442 
455 -(nonnull DynamicTemplateIndex*) createDynamicTemplateIndex: (Context* _Nonnull) config;
456 
457 -(nonnull ContextTemplate*) loadContextTemplate: (NSInputStream* _Nonnull) stream;
458 
459 -(nonnull ProcessingBlock*) createProcessingBlock: (Context* _Nonnull) config;
460 
468 -(nonnull LicenseState *) getLicenseState;
469 @end
470 
471 
Интерфейсный объект для взаимодействия с методами из Processing Block API.
Definition: ProcessingBlock.h:16
Definition: Recognizer.h:64
Definition: FacerecService.mm:300
Definition: FacerecService.mm:308
Definition: DynamicTemplateIndex.h:5
Definition: FacerecService.mm:289
Definition: FacerecService.mm:332
Интерфейсный объект для детекции и трекинга лиц на изображениях или видеопоследовательностях.
Definition: Capturer.h:16
VideoWorker - интерфейсный объект для трекинга, обработки и распознавания лиц на нескольких видеопото...
Definition: VideoWorker.h:105
Context - интерфейсный объект для хранения данных и взаимодействия с методами из Processing Block API...
Definition: Context.h:67
Definition: FacerecService.mm:79
Definition: ContextTemplate.h:4