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.IMAGE)[source]¶
Description see
getDataFromMultipart()
.- Return type:
List
[InputImageData
]
- async post()[source]¶
Detect faces on images. See spec_detector.
- Returns:
response with succeeded processed images and failed processed images
- Return type:
HTTPResponse