Detector handler

Detector Handler

Module realize detector handler.

class luna_handlers.app.handlers.detector_handler.DetectorHandler(request)[source]

Handler for detecting faces on images.

Resource: “/{api_version}/detector”

async getDataFromMultipart(imageType=ImageType.rawImage)[source]

Description see getDataFromMultipart().

Return type

Union[List[SDKDetectableImage], List[FaceWarp]]

async post()[source]

Detect faces on images. See spec_detector.

Returns

response with succeeded processed images and failed processed images

Return type

HTTPResponse