Face attribute descriptors handler¶
- class luna_faces.app.handlers.face_attributes_descriptors_handler.BaseHandlerWithOptionalJson(request)[source]¶
Base class for missing face descriptors handlers.
- class luna_faces.app.handlers.face_attributes_descriptors_handler.FaceDescriptorsCountHandler(request)[source]¶
Handler to get descriptors count
- async get()[source]¶
Get descriptor count by versions. See spec_get_descriptors_count_info.
- Return type:
HTTPResponse
- Returns:
response with status code 200 and json. Json contains count info separated by versions
- async post()[source]¶
Get missing face descriptors count by descriptor version. See spec_get_missing_descriptors_count.
- Return type:
HTTPResponse
- Returns:
response with status code 200 and json. Json contains count faces
- class luna_faces.app.handlers.face_attributes_descriptors_handler.FaceDescriptorsHandler(request)[source]¶
Handler to get missing face descriptors data
- async post()[source]¶
Get missing face descriptors by descriptor version. See spec_get_missing_descriptors.
- Return type:
HTTPResponse
- Returns:
response with status code 200 and json. Json contains list of face id and descriptor samples
- class luna_faces.app.handlers.face_attributes_descriptors_handler.FaceDescriptorsVersionHandler(request)[source]¶
Handler for removing descriptors by version.
- async delete(descriptorVersion)[source]¶
Delete descriptors by version. See spec_remove_descriptors_by_version.
- Return type:
HTTPResponse
- Returns:
response with status code 200 and json. Json contains removed descriptor face ids