FaceCompareResult

This section covers how to use the Compare Result Object.

class cryptonets_python_sdk.helper.result_objects.compareResult.FaceCompareResult(result=None, distance_min=None, distance_mean=None, distance_max=None, second_validation_result=None, first_validation_result=None, status=-1, distance=None, message='')
Attributes:
distance_max

Returns the maximum distance

distance_mean

Returns the average distance

distance_min

Returns the minimum 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_max: float

Returns the maximum distance

Maximum distance refers to the thresholds used for comparing the images

property distance_mean: float

Returns the average distance

Mean distance refers to the thresholds used for comparing the images

property distance_min: float

Returns the minimum distance

Minimum distance refers to the thresholds used for comparing the images

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

property second_validation_result: int

Returns the validation result of second image

property status: int

Returns the status of the operation

0 - If successfully obtained result from server

-1 - In case of error