3DiVi Face SDK  3.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
VideoWorker.h
1 
2 #import <Foundation/Foundation.h>
3 #import "Capturer.h"
4 #import "Template.h"
5 #import "CallbackData.h"
6 #import "RawImage.h"
7 #import "swift_callback.h"
8 
9 
29 @interface DatabaseElement : NSObject
30 {
31  void *base_element;
32  u_int64_t element_id;
33  u_int64_t person_id;
34  Template *face_template;
36 }
37 -(nonnull instancetype) init: (void* _Nullable) element;
38 -(nonnull instancetype) init: (u_int64_t) elem_id : (u_int64_t) pers_id : (Template *_Nullable) face_temp : (float) distance;
39 -(void) dealloc;
40 
41 @property (readonly, nonnull)void *base_element;
42 
50 @property u_int64_t element_id;
51 
59 @property u_int64_t person_id;
60 
79 @property float distance_treshold;
80 
88 @property Template * _Nullable face_template;
89 
90 @end
91 
92 
105 @interface VideoWorker : NSObject
106 {
107  void *video_worker;
108  CallbackHandler *handler;
109 
110 }
111 -(nonnull instancetype) init: (void* _Nonnull) worker;
112 -(void) dealloc;
113 
147 -(int) addTrackingCallbackU: (const void* _Nonnull)callback : (void * _Nonnull const)userdata;
148 
182 -(int) addMatchFoundCallbackU: (const void* _Nonnull)callback : (void * _Nonnull const)userdata;
183 
184 
202 -(void) addHandlerCallback: (CallbackHandler * _Nonnull) handler;
203 
251 -(int) addVideoFrame: (RawImage * _Nonnull) image : (int) stream_id;
252 
272 -(void) setDatabase: (NSArray<DatabaseElement*>* _Nonnull) elements;
273 
295 -(void) enableProcessingOnStream: (const int) stream_id;
296 
318 -(void) disableProcessingOnStream: (const int) stream_id;
319 
361 -(void) resetStream: (const int) stream_id;
362 -(void) checkException;
363 @property (nonnull) CallbackHandler *handler;
364 
365 @end
366 
Template *_Nullable face_template
Face template.
Definition: VideoWorker.h:88
Interface object for saving the face template.
Definition: Template.h:13
Database element. If you have several face templates for one person, you should create one element fo...
Definition: VideoWorker.h:29
u_int64_t element_id
Unique id of the element.
Definition: VideoWorker.h:32
VideoWorker is an interface object for tracking, processing and matching faces on multiple video stre...
Definition: VideoWorker.h:105
float distance_treshold
Distance threshold for a MatchFound event.
Definition: VideoWorker.h:35
Struct that provides raw image data and optional cropping information.
Definition: RawImage.h:113
u_int64_t person_id
Unique id of the person.
Definition: VideoWorker.h:33