Verify handler

Handler for verify resource

class luna_backport3.app.handlers.handler_verify.HandlerVerify(request)[source]

Handler for verifying that photo contains given person

Resource: “/{api_version}/verify”

async get()[source]

Get handler info. See spec_get_handler_verify.

Return type:

HTTPResponse

async patch()[source]

Patch handler. See spec_patch_handler_verify.

Return type:

HTTPResponse

async post()[source]

Verify person on provided image, see spec_handlers_verify.

Return type:

HTTPResponse

class luna_backport3.app.handlers.handler_verify.HandlerVerifyRaw(request)[source]

Handler for raw verifying reference descriptors vs candidates descriptors

Resource: “/{api_version}/verify/raw”

async postProcessingFailedRequest(response)[source]

Post processing failed response from the api :param response: response

Raises:

VLException(ErrorInfo) – re raise error

async postProcessingPost(response)[source]

Add a verification status to match results :param response: response

Returns:

match response in api format

Return type:

HTTPResponse

async prepareRequestPost()[source]

Raw batch verification, see spec raw verification.

Returns:

proxy request for matching

Return type:

ProxyRequest

prepareUrl()[source]

Prepare url for raw matching :returns: raw matching url

Return type:

str