Face SDK  1.13.0 Mozart release
Face Recognition Software Development Kit
Classes | Typedefs | Functions | Variables

Classes

struct  face_sdk__face
 The face object. Face object contains information about face bounding box on the image and the original image. More...
 

Typedefs

typedef struct face_sdk__face face_sdk__face_t
 The face object. Face object contains information about face bounding box on the image and the original image. More...
 

Functions

bool face_sdk__face__get_addr (const face_sdk__face_t *face, uint64_t *addr)
 Retrieves face_sdk__face_t object address * *. More...
 
bool face_sdk__face__get_confidence (const face_sdk__face_t *face, float *value)
 Retrieves face confidence. Range is from 0.0f to 1.0f where 1.0f is definitely a face. More...
 
bool face_sdk__face__get_x (const face_sdk__face_t *face, int32_t *value)
 Retrieves x coordinate of face bounding box in pixels. More...
 
bool face_sdk__face__get_y (const face_sdk__face_t *face, int32_t *value)
 Retrieves y coordinate of face bounding box in pixels. More...
 
bool face_sdk__face__get_width (const face_sdk__face_t *face, int32_t *value)
 Retrieves width of face bounding box in pixels. More...
 
bool face_sdk__face__get_height (const face_sdk__face_t *face, int32_t *value)
 Retrieves height of face bounding box in pixels. More...
 
bool face_sdk__face__get_img (const face_sdk__face_t *face, face_sdk__image_t **image)
 Retrieves original image. More...
 
bool face_sdk__face__get_cropped_image (const face_sdk__face_t *face, face_sdk__image_t **image)
 The cropped image (Not all detector versions support this method. If supported function will return false) More...
 
bool face_sdk__face__has_landmarks (const face_sdk__face_t *face, bool *value)
 Retrieves face landmarks availability. More...
 
bool face_sdk__face__get_landmarks (const face_sdk__face_t *face, face_sdk__landmark_set_t **landmarks)
 Retrieves set of 10 predicted landmarks. More...
 
bool face_sdk__face__is_out_of_bounds_set (const face_sdk__face_t *face, bool *value)
 Retrieves out of bounds feature availability. More...
 
bool face_sdk__face__out_of_bounds (const face_sdk__face_t *face, bool *value)
 Retrieves out of bounds state. More...
 
bool face_sdk__face__get_version (const face_sdk__face_t *face, uint32_t *value)
 Retrieves face object version. More...
 
bool face_sdk__make_face (const face_sdk__image_t *img, face_sdk__face_t **face)
 Makes the face object. Bounding box size is set equal to the original image size. More...
 
bool face_sdk__make_face_1 (const face_sdk__image_t *img, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified version. Bounding box size is set equal to the original image size. More...
 
bool face_sdk__make_face_2 (const face_sdk__image_t *img, bool out_of_bounds, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified out of bound flag and version. Bounding box size is set equal to the original image size. More...
 
bool face_sdk__make_face_3 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box and confidence. More...
 
bool face_sdk__make_face_4 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence and version. More...
 
bool face_sdk__make_face_5 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, bool out_of_bounds, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence, out_of_bounds flag and version. More...
 
bool face_sdk__make_face_6 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence and landmarks. More...
 
bool face_sdk__make_face_7 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence, landmarks and version. More...
 
bool face_sdk__make_face_8 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, bool out_of_bounds, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence, landmarks, out_of_bounds flag and version. More...
 
bool face_sdk__make_face_9 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, const face_sdk__image_t *cropped_image, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence, landmarks and cropped image. More...
 
bool face_sdk__make_face_10 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, const face_sdk__image_t *cropped_image, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, confidence, landmarks, cropped_image version. More...
 
bool face_sdk__make_face_11 (const face_sdk__image_t *img, int32_t x, int32_t y, int32_t width, int32_t height, float confidence, const face_sdk__landmark_set_t *landmark_set, const face_sdk__image_t *cropped_image, bool out_of_bounds, uint32_t version, face_sdk__face_t **face)
 Makes the face object with specified coordinates of bounding box, landmarks, cropped_image, out_of_bounds flag and version. More...
 
void face_sdk__face_free (face_sdk__face_t *face)
 Destroys face_sdk__face object. More...
 

Variables

const float FACE_SDK__UNKNOWN_CONFIDENCE = .0f
 
const uint32_t FACE_SDK__UNKNOWN_VERSION = 0
 

Detailed Description

Typedef Documentation

◆ face_sdk__face_t

The face object. Face object contains information about face bounding box on the image and the original image.

Use face_sdk__make_face() function to instantiate face object face_sdk__serializer__serialize and face_sdk__serializer__deserialize functions allows to serialize and deserialize face_sdk__face object.

Function Documentation

◆ face_sdk__face__get_addr()

bool face_sdk__face__get_addr ( const face_sdk__face_t face,
uint64_t *  addr 
)

Retrieves face_sdk__face_t object address * *.

Parameters
[in]faceface_sdk__face_t object *
[out]addrObject address * *
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_confidence()

bool face_sdk__face__get_confidence ( const face_sdk__face_t face,
float *  value 
)

Retrieves face confidence. Range is from 0.0f to 1.0f where 1.0f is definitely a face.

Parameters
[in]faceFace object
[out]valueConfidence
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_cropped_image()

bool face_sdk__face__get_cropped_image ( const face_sdk__face_t face,
face_sdk__image_t **  image 
)

The cropped image (Not all detector versions support this method. If supported function will return false)

Parameters
[in]faceFace object
[out]imageCropped Image object
Returns
true on success, false on failure or if not supported. See last_error

◆ face_sdk__face__get_height()

bool face_sdk__face__get_height ( const face_sdk__face_t face,
int32_t *  value 
)

Retrieves height of face bounding box in pixels.

Parameters
[in]faceFace object
[out]valueBounding box width
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_img()

bool face_sdk__face__get_img ( const face_sdk__face_t face,
face_sdk__image_t **  image 
)

Retrieves original image.

Parameters
[in]faceFace object
[out]imageImage object
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_landmarks()

bool face_sdk__face__get_landmarks ( const face_sdk__face_t face,
face_sdk__landmark_set_t **  landmarks 
)

Retrieves set of 10 predicted landmarks.

Parameters
[in]faceFace object
[out]valueSet of landmarks
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_version()

bool face_sdk__face__get_version ( const face_sdk__face_t face,
uint32_t *  value 
)

Retrieves face object version.

Parameters
[in]faceFace object
[out]valueFace object version
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_width()

bool face_sdk__face__get_width ( const face_sdk__face_t face,
int32_t *  value 
)

Retrieves width of face bounding box in pixels.

Parameters
[in]faceFace object
[out]valueBounding box width
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_x()

bool face_sdk__face__get_x ( const face_sdk__face_t face,
int32_t *  value 
)

Retrieves x coordinate of face bounding box in pixels.

Parameters
[in]faceFace object
[out]valueBounding box x coordinate
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__get_y()

bool face_sdk__face__get_y ( const face_sdk__face_t face,
int32_t *  value 
)

Retrieves y coordinate of face bounding box in pixels.

Parameters
[in]faceFace object
[out]valueBounding box y coordinate
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__has_landmarks()

bool face_sdk__face__has_landmarks ( const face_sdk__face_t face,
bool *  value 
)

Retrieves face landmarks availability.

Parameters
[in]faceFace object
[out]valueTrue if face face predicted landmarks, false if it has not
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__is_out_of_bounds_set()

bool face_sdk__face__is_out_of_bounds_set ( const face_sdk__face_t face,
bool *  value 
)

Retrieves out of bounds feature availability.

Parameters
[in]faceFace object
[out]valueTrue if out of bounds feature is supported, false if feature is not supported
Returns
true on success, false on failure. See last_error

◆ face_sdk__face__out_of_bounds()

bool face_sdk__face__out_of_bounds ( const face_sdk__face_t face,
bool *  value 
)

Retrieves out of bounds state.

Parameters
[in]faceFace object
[out]valueTrue if face is out of image bound, false if face is within image bound
Returns
true on success, false on failure. See last_error

◆ face_sdk__face_free()

void face_sdk__face_free ( face_sdk__face_t face)

Destroys face_sdk__face object.

Parameters
[in]faceFace object

◆ face_sdk__make_face()

bool face_sdk__make_face ( const face_sdk__image_t img,
face_sdk__face_t **  face 
)

Makes the face object. Bounding box size is set equal to the original image size.

Parameters
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_1()

bool face_sdk__make_face_1 ( const face_sdk__image_t img,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified version. Bounding box size is set equal to the original image size.

Parameters
[in]imgImage with face
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_10()

bool face_sdk__make_face_10 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
const face_sdk__image_t cropped_image,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence, landmarks, cropped_image version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]landmark_setFace landmarks
[in]cropped_imageCropped face
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_11()

bool face_sdk__make_face_11 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
const face_sdk__image_t cropped_image,
bool  out_of_bounds,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, landmarks, cropped_image, out_of_bounds flag and version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]landmark_setFace landmarks
[in]cropped_imageCropped face
[in]out_of_boundsFace out of bounds flag
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_2()

bool face_sdk__make_face_2 ( const face_sdk__image_t img,
bool  out_of_bounds,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified out of bound flag and version. Bounding box size is set equal to the original image size.

Parameters
[in]imgImage with face
[in]out_of_boundsFace out of bounds flag
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_3()

bool face_sdk__make_face_3 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box and confidence.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_4()

bool face_sdk__make_face_4 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence and version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_5()

bool face_sdk__make_face_5 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
bool  out_of_bounds,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence, out_of_bounds flag and version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]out_of_boundsFace out of bounds flag
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_6()

bool face_sdk__make_face_6 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence and landmarks.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]landmark_setFace landmarks
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_7()

bool face_sdk__make_face_7 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence, landmarks and version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]landmark_setFace landmarks
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_8()

bool face_sdk__make_face_8 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
bool  out_of_bounds,
uint32_t  version,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence, landmarks, out_of_bounds flag and version.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]landmark_setFace landmarks
[in]out_of_boundsFace out of bounds flag
[in]versionFace object version
[out]faceFace object
Returns
true on success, false on failure. See last_error

◆ face_sdk__make_face_9()

bool face_sdk__make_face_9 ( const face_sdk__image_t img,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
float  confidence,
const face_sdk__landmark_set_t landmark_set,
const face_sdk__image_t cropped_image,
face_sdk__face_t **  face 
)

Makes the face object with specified coordinates of bounding box, confidence, landmarks and cropped image.

Parameters
[in]imgImage with face
[in]xX coordinate of face bounding box in pixels
[in]yY coordinate of face bounding box in pixels
[in]widthWidth of face bounding box in pixels
[in]heightHeight of face bounding box in pixels
[in]confidencealways set to 1.0f
[in]landmark_setFace landmarks
[in]cropped_imageCropped face
[out]faceFace object
Returns
true on success, false on failure. See last_error