Liveness handler

class luna_backport3.app.handlers.liveness_handler.LivenessHandler(request)[source]

Handler for liveness prediction service

async postProcessingFailedRequest(response)[source]

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

Returns:

response in api format

Return type:

HTTPResponse

async postProcessingPost(response)[source]

Default post processing response from the service :param response: response

Returns:

response in api format

Return type:

HTTPResponse

async prepareRequestPost()[source]

Predict liveness, see spec liveness.

Returns:

Proxy request with new face

Return type:

ProxyRequest