EyeAnonymize  3.0.0
SDK for anonymization of human faces and licence plates in images.
 All Data Structures Functions Variables Typedefs Groups
EyeAnonymize.h
1 /******************************************************************/
2 /******************************************************************/
14 /******************************************************************/
15 /******************************************************************/
16 
17 #ifndef _EYE_ANONIMIZE_H
18 #define _EYE_ANONIMIZE_H
19 
20 /* function prefix */
21 #if defined(WIN32) || defined(_WIN32) || defined(_DLL) || defined(_WINDOWS_) || defined(_WINDLL)
22 # define FUNCTION_PREFIX extern "C" __declspec(dllexport)
23 #else
24 # define FUNCTION_PREFIX extern "C"
25 #endif
26 
32 /* anonymization modules flags used in AnParams.iMode */
33 #define ANONYMIZE_FACE 1
34 #define ANONYMIZE_LP 2
37 typedef struct
38 {
39  int from_col;
40  int to_col;
41  int from_row;
42  int to_row;
43 } AnROI;
44 
45 typedef enum
46 {
47  AN_LICENSE_COMMERCIAL = 0, // commercial mode, count every match in expiration count key or unlimited in perpetual key / time key
48  AN_LICENSE_EDU = 100 // edu mode, unlimited count
49 } AnLicenseType;
50 
52 typedef struct
53 {
55  int iMode;
68  int iVerbose;
69  int iPanoramic;
70 } AnParams;
82 FUNCTION_PREFIX void* anInit(const char* pModuleDirectory, const char* pIniDirectory, const char* pIniFilename);
83 
84 
88 typedef void* (*fcn_anInit)(const char*,const char*,const char*);
89 
94 FUNCTION_PREFIX void anFree(void* pvModuleState);
95 
99 typedef void (*fcn_anFree)(void*);
100 
111 FUNCTION_PREFIX int anAnonymize(const char* src_image_filename,
112  const char* dst_image_filename,
113  AnParams* pParams,
114  void* pvModuleState );
115 
119 typedef int (*fcn_anAnonymize)(const char*,const char*,AnParams*,void* );
120 
132 FUNCTION_PREFIX int anAnonymizeBuffer(unsigned char* pSrcData,
133  int width,
134  int height,
135  AnParams* pParams,
136  void* pvModuleState,
137  unsigned char** ppDstData );
138 
142 typedef int (*fcn_anAnonymizeBuffer)(unsigned char*, int, int, AnParams*,void*, unsigned char**);
143 
148 FUNCTION_PREFIX void anFreeBuffer(unsigned char* pData);
149 
153 typedef void (*fcn_anFreeBuffer)(unsigned char*);
154 
166 FUNCTION_PREFIX int anAnonymizeJpegBuffer(char* pSrcData,
167  size_t srcLength,
168  AnParams* pParams,
169  void* pvModuleState,
170  char** ppDstData,
171  size_t* dstLength
172  );
173 
177 typedef int (*fcn_anAnonymizeJpegBuffer)(char*, size_t, AnParams*,void*, char**, size_t*);
178 
179 
184 FUNCTION_PREFIX void anFreeJpegBuffer(char* pData);
185 
189 typedef void (*fcn_anFreeJpegBuffer)(char*);
190 
191 
192 
193 
194 
198 #endif
199 
int from_col
Definition: EyeAnonymize.h:39
FUNCTION_PREFIX void anFreeJpegBuffer(char *pData)
Frees the image buffer from fcn_anAnonymizeJpegBuffer.
FUNCTION_PREFIX int anAnonymize(const char *src_image_filename, const char *dst_image_filename, AnParams *pParams, void *pvModuleState)
Load image from jpeg file and process the anonymization. Result save as a jpeg image.
void(* fcn_anFreeBuffer)(unsigned char *)
anFreeBuffer function pointer
Definition: EyeAnonymize.h:153
FUNCTION_PREFIX int anAnonymizeBuffer(unsigned char *pSrcData, int width, int height, AnParams *pParams, void *pvModuleState, unsigned char **ppDstData)
Processes image image data buffer, i.e. detects and blurs faces and license plates.
int iPanoramic
Definition: EyeAnonymize.h:69
int iLpNumBlurPass
Definition: EyeAnonymize.h:65
FUNCTION_PREFIX void * anInit(const char *pModuleDirectory, const char *pIniDirectory, const char *pIniFilename)
Initializes/loads EyeAnonymize engine.
FUNCTION_PREFIX void anFreeBuffer(unsigned char *pData)
Frees the image buffer from fcn_anAnonymizeBuffer.
AnROI ROI
Definition: EyeAnonymize.h:54
void(* fcn_anFree)(void *)
anFree function pointer
Definition: EyeAnonymize.h:99
int(* fcn_anAnonymizeJpegBuffer)(char *, size_t, AnParams *, void *, char **, size_t *)
anAnonymizeJpegBuffer function pointer
Definition: EyeAnonymize.h:177
int iJpegQuality
Definition: EyeAnonymize.h:57
int iFaceNumBlurPass
Definition: EyeAnonymize.h:61
double dFaceDetSizeFactor
Definition: EyeAnonymize.h:60
int iVerbose
Definition: EyeAnonymize.h:68
int(* fcn_anAnonymizeBuffer)(unsigned char *, int, int, AnParams *, void *, unsigned char **)
anAnonymizeBuffer function pointer
Definition: EyeAnonymize.h:142
int to_row
Definition: EyeAnonymize.h:42
Control parameters.
Definition: EyeAnonymize.h:52
double dLpDetSizeFactor
Definition: EyeAnonymize.h:64
FUNCTION_PREFIX int anAnonymizeJpegBuffer(char *pSrcData, size_t srcLength, AnParams *pParams, void *pvModuleState, char **ppDstData, size_t *dstLength)
Processes the JPEG image buffer, i.e. detects and blurs faces and license plates. ...
FUNCTION_PREFIX void anFree(void *pvModuleState)
Frees engine state structure.
double dFaceConfidenceThr
Definition: EyeAnonymize.h:59
int iLicenseType
Definition: EyeAnonymize.h:56
int(* fcn_anAnonymize)(const char *, const char *, AnParams *, void *)
anAnonymize function pointer
Definition: EyeAnonymize.h:119
void(* fcn_anFreeJpegBuffer)(char *)
anFreeBuffer function pointer
Definition: EyeAnonymize.h:189
double dLpConfidenceThr
Definition: EyeAnonymize.h:63
int iShowDetections
Definition: EyeAnonymize.h:67
int to_col
Definition: EyeAnonymize.h:40
int from_row
Definition: EyeAnonymize.h:41
Region Of Interest.
Definition: EyeAnonymize.h:37