EyeAnonymize  3.0.0
SDK for anonymization of human faces and licence plates in images.
 All Data Structures Functions Variables Typedefs Groups
EyeAnonymize

Data Structures

struct  AnROI
 Region Of Interest. More...
 
struct  AnParams
 Control parameters. More...
 

Macros

#define ANONYMIZE_FACE   1
 
#define ANONYMIZE_LP   2
 

Typedefs

typedef void *(* fcn_anInit )(const char *, const char *, const char *)
 anInit function pointer More...
 
typedef void(* fcn_anFree )(void *)
 anFree function pointer More...
 
typedef int(* fcn_anAnonymize )(const char *, const char *, AnParams *, void *)
 anAnonymize function pointer More...
 
typedef int(* fcn_anAnonymizeBuffer )(unsigned char *, int, int, AnParams *, void *, unsigned char **)
 anAnonymizeBuffer function pointer More...
 
typedef void(* fcn_anFreeBuffer )(unsigned char *)
 anFreeBuffer function pointer More...
 
typedef int(* fcn_anAnonymizeJpegBuffer )(char *, size_t, AnParams *, void *, char **, size_t *)
 anAnonymizeJpegBuffer function pointer More...
 
typedef void(* fcn_anFreeJpegBuffer )(char *)
 anFreeBuffer function pointer More...
 

Enumerations

enum  AnLicenseType { AN_LICENSE_COMMERCIAL = 0, AN_LICENSE_EDU = 100 }
 

Functions

FUNCTION_PREFIX void * anInit (const char *pModuleDirectory, const char *pIniDirectory, const char *pIniFilename)
 Initializes/loads EyeAnonymize engine. More...
 
FUNCTION_PREFIX void anFree (void *pvModuleState)
 Frees engine state structure. More...
 
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. More...
 
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. More...
 
FUNCTION_PREFIX void anFreeBuffer (unsigned char *pData)
 Frees the image buffer from fcn_anAnonymizeBuffer. More...
 
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. More...
 
FUNCTION_PREFIX void anFreeJpegBuffer (char *pData)
 Frees the image buffer from fcn_anAnonymizeJpegBuffer. More...
 

Detailed Description

EyeAnonymize SKD is a library for anonymization of faces and licence plates in digital images.

Macro Definition Documentation

#define ANONYMIZE_FACE   1

face annonymization flag

Definition at line 33 of file EyeAnonymize.h.

#define ANONYMIZE_LP   2

licence plate anonymization flag

Definition at line 34 of file EyeAnonymize.h.

Typedef Documentation

typedef int(* fcn_anAnonymize)(const char *, const char *, AnParams *, void *)

anAnonymize function pointer

See also
anAnonymize

Definition at line 119 of file EyeAnonymize.h.

typedef int(* fcn_anAnonymizeBuffer)(unsigned char *, int, int, AnParams *, void *, unsigned char **)

anAnonymizeBuffer function pointer

See also
anAnonymizeBuffer

Definition at line 142 of file EyeAnonymize.h.

typedef int(* fcn_anAnonymizeJpegBuffer)(char *, size_t, AnParams *, void *, char **, size_t *)

anAnonymizeJpegBuffer function pointer

See also
anAnonymizeJpegBuffer

Definition at line 177 of file EyeAnonymize.h.

typedef void(* fcn_anFree)(void *)

anFree function pointer

See also
anFree

Definition at line 99 of file EyeAnonymize.h.

typedef void(* fcn_anFreeBuffer)(unsigned char *)

anFreeBuffer function pointer

See also
anFreeBuffer

Definition at line 153 of file EyeAnonymize.h.

typedef void(* fcn_anFreeJpegBuffer)(char *)

anFreeBuffer function pointer

See also
anFreeBuffer

Definition at line 189 of file EyeAnonymize.h.

typedef void*(* fcn_anInit)(const char *, const char *, const char *)

anInit function pointer

See also
anInit

Definition at line 88 of file EyeAnonymize.h.

Function Documentation

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.

Main function for anonymization. Function loads a jpeg image from a file, run anonymization engine and save the anonymized image as jpeg file. Function return 0 on success or error code.

Parameters
src_image_filenameInput image filename (jpeg).
dst_image_filenameOutput image filename (jpeg).
pParamsControl parameters.
pvModuleStatePointer to state created by anInit().
Returns
Zero on success, error code on failure.
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.

Main function for anonymization. Function takes as an input parameter raw image data aligned row by row and run anonymization engine. The anonymized image is returned in ouput parmeter in format of input data. Function return 0 on success or error code.

Parameters
pSrcDataPointer to input data RGB buffer - row-wise, 3 bytes (uchar) per pixel; index = 3*col + row*3*width
widthImage width;
heightImage height
pParamsControl parameters.
pvModuleStatePointer to state created by anInit().
ppDstDataOutput data RGB buffer.
Returns
Zero on success, error code on failure.
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.

Main function for anonymization. Function takes as an input parameter JPEG image buffer (compressed data) which anonymize. The anonymized image is returned in ouput parmeter also as JPEG image buffer. Function return 0 on success or error code.

Parameters
pSrcDataPointer to input JPEG buffer.
srcLengthBuffer length in bytes.
pParamsControl parameters.
pvModuleStatePointer to state created by anInit().
ppDstDataOutput data RGB buffer.
dstLengthOutput buffer length in bytes.
Returns
Zero on success, error code on failure.
void anFree ( void *  pvModuleState)

Frees engine state structure.

Parameters
pvModuleStatePointer to a state created by anInit().
FUNCTION_PREFIX void anFreeBuffer ( unsigned char *  pData)

Frees the image buffer from fcn_anAnonymizeBuffer.

Frees memory previously allocated for the image buffer using fcn_anAnonymizeBuffer.

Parameters
pDataPointer to image buffer.
FUNCTION_PREFIX void anFreeJpegBuffer ( char *  pData)

Frees the image buffer from fcn_anAnonymizeJpegBuffer.

Frees memory previously allocated for the image buffer using fcn_anAnonymizeJpegBuffer.

Parameters
pDataPointer to image buffer.
FUNCTION_PREFIX void* anInit ( const char *  pModuleDirectory,
const char *  pIniDirectory,
const char *  pIniFilename 
)

Initializes/loads EyeAnonymize engine.

anInit is the initialization function which loads and set-ups all detections models. Input parameters of the function are path to "modules" directory of EyeAnonymize SDK which contains configuration files and directory detection models. Function return a pointer to the EyeAnonymize state or NULL on failure. Function sets the errno variable.

Parameters
pModuleDirectoryPath to the "modules" directory of EyeAnonymize SDK.
pIniDirectoryPath to the direcotry containing "config.ini" of EyeAnonymize SDK.
pIniFilenameConfig file name (e.g. config.ini)
Returns
Returns a pointer to state, NULL on failure.