FaceCompareResult¶
This section covers how to use the Compare Result Object.
- class cryptonets_python_sdk.helper.result_objects.compareResult.FaceCompareResult(result=-1, distance=None, second_validation_result=None, first_validation_result=None, status=-1, message='')¶
- Attributes:
distance
Returns the comparaison distance
first_validation_result
Returns the validation result of first image
message
Returns the message of the operation
result
Returns the result of the operation
second_validation_result
Returns the validation result of second image
status
Returns the status of the operation
- property distance: float¶
Returns the comparaison distance
- property first_validation_result: int¶
Returns the validation result of first image
- property message: str¶
Returns the message of the operation
- property result: int¶
Returns the result of the operation 1 - if 2 images are same -1 - if 2 images are different
- property second_validation_result: int¶
Returns the validation result of second image
- property status: int¶
Returns the status of the operation
0 - If the compare call was successful (regardless of the result)
-1 - In case of error and the compare was not performed because of an error