Face attribute handler

class luna_faces.app.handlers.face_attributes_handler.FaceAttributeSamplesHandler(request)[source]

Handler for work with face attribute samples

async get(faceId)[source]

Get the face attribute samples. See spec_get_face_attribute_samples.

Return type:

HTTPResponse

Returns:

response json with the face attribute samples

class luna_faces.app.handlers.face_attributes_handler.FaceAttributesHandler(request)[source]

Handler for work with face attributes

async delete(faceId)[source]

Delete the face attribute. See spec_delete_face_attributes.

Return type:

HTTPResponse

Returns:

response with status code 204 if the face attribute was successfully deleted

async get(faceId)[source]

Get the face attribute. See spec_get_face_attributes.

Return type:

HTTPResponse

Returns:

response json with the face attributes

async getFaceAccount(faceId)[source]

Check the face existence and get face account

Parameters:

faceId (str) – face id

Raises:

VLException(Error.FaceNotFound, 404, isCriticalError=False) – if face is not exist

Return type:

str

Returns:

face account id

async patch(faceId)[source]

Patch the face attribute. See spec_patch_face_attribute.

Return type:

HTTPResponse

Returns:

response with status code 204 if the face attribute was successfully patched

async put(faceId)[source]

Put the face attribute. See spec_put_face_attribute.

Return type:

HTTPResponse

Returns:

response with status code 204 if the face attribute was successfully put