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)
Attributes:
api_message

Returns the message received from the API of the operation.

api_status

Returns the status received from the API of the operation

enroll_level

Returns the enroll_level of the user

enroll_performed

Returns True if enroll was actually performed,

guid

Returns the GUID of the user

message

Returns the message of the operation

puid

Returns the PUID of the user

score

Returns the score obtained from server

status

Returns the status of the operation

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 score obtained from server

property status: int

Returns the status of the operation

0 - If successfully obtained result from server

-1 - In case of error