FaceObjectResult

This section covers how to use the Face Object Result Object.

Check return codes for all possible result codes and its status

class cryptonets_python_sdk.helper.result_objects.faceObjectResult.FaceObjectResult(return_code=-100, message='', age=None, top_left_coordinate=None, bottom_right_coordinate=None)
Attributes:
age

Returns the predicted age of the image

bounding_box

Returns the bounding box for the images found

message

Returns the message of the operation

return_code

Returns the return code for the image

property age: float

Returns the predicted age of the image

Age value might be in the float format as it is returned from DNN model

property bounding_box: BoundingBox

Returns the bounding box for the images found

Returns:
BoundingBox

top_left_coordinate: Point

bottom_right_coordinate: Point

property message: str

Returns the message of the operation

property return_code: int

Returns the return code for the image

Return Codes for is valid and Error Messages

Return Code

Return Message / Error Description

-100

InvalidImage

-6

Antispoofing detection was not performed and was skipped.

-5

A grayscale image has been detected, which may indicate a spoof attempt

-4

Invalid face detected, unable to apply antispoofing procedures.

-3

Face too close to the edge; please center your face in the image.

-2

Mobile phone detected in the vicinity, which may indicate a spoof attempt.

-1

NoFace

0

Valid Biometric

1

Face is an image of an image (spoof). Please only provide live facial image(s). (Under implementation)

2

Face is an image of a video (spoof). Please only provide live facial image(s). (Under implementation)

3

Face in image is too close to the camera. Please move away from the camera.

4

Face in image is too far away.

5

Face in image is too far to the right.

6

Face in image is too far to the left.

7

Face in image is too high.

8

Face in image is too low.

9

Face in image is too blurry.

10

Please remove eyeglasses during registration.

11

Please remove face mask during registration.

12

Head in image turned too far towards the left. Please face the camera.

13

Head in image turned too far towards the right. Please face the camera.

14

Head in image turned too far up. Please face the camera.

15

Head in image turned too far down. Please face the camera.

16

Exposure too dark. Low Light Condition

17

Exposure too bright. Bright Light Condition

18

Face detection Confidence low. Adjust spatial resolution

19

Invalid face background. Too noisy to capture face

20

Eye blink detected.

21

Mouth open detected.