FaceEnrollPredictResult

This section covers how to use the Enroll / Predict result object.

class cryptonets_python_sdk.helper.result_objects.enrollPredictResult.FaceEnrollPredictResult(enroll_level=None, puid=None, guid=None, score=None, status=-1, message='', api_message='', api_status=None, enroll_performed=False)
property api_message: str

Returns the message received from the API of the operation. If the user is enrolled, this message will be “User Already Enrolled”

property api_status: int

Returns the status received from the API of the operation 0 - Success else - Failure

property enroll_level: int

Returns the enroll_level of the user 0 - one-factor authentication

1 - two-factor authentication

property enroll_performed: bool

Returns True if enroll was actually performed, False otherwise This property is only relevant for the enroll operation

property guid: str

Returns the GUID of the user

Unique ID of length 20

property message: str

Returns the message of the operation

property puid: str

Returns the PUID of the user

Unique ID of length 20

property score: str

Returns the face score calculated during the enroll/predict operation

property status: int

Returns the status of the operation

0 - If successfully obtained result from server

-1 - In case of error