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, age_confidence_score=None)¶
- Attributes:
age
Returns the predicted age of the image
age_confidence_score
Returns the predicted age confidence score as retuned from the native api
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 is in the float format that it is returned from DNN model
- property age_confidence_score: float¶
Returns the predicted age confidence score as retuned from the native api
age_confidence_score value is float
- 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 |
Too many faces detected. |
-1 |
NoFace |
0 |
Valid Biometric |
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 |
22 |
Face is rotated to the right |
23 |
Face is rotated to the left |
24 |
The face is wearing eyeglasses and a face mask at the same time |
25 |
Face not in oval. Please center your face in the oval area (used in antispoofing) |