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