Process a file
Add a blurit task in task queue.
Body
Detect and blur route's body. At least one of output_media or output_json is needed.
blur_platesbooleanOptionalDefault:
trueblur_headsbooleanOptionalDefault:
trueResponses
200
Successful Response
application/json
Task POST result structure
task_idstringRequiredExample:
686dfef9-0bb8-48a5-8f8b-452b2c5d57cc422
Validation Error
application/json
post/api/blur_it
POST /api/blur_it HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 305
{
"input_media": {
"protocol": "file",
"path": "image.jpg",
"expires_at": "2042-01-01 00:00:00+02:00",
"auto_delete": "True"
},
"output_media": {
"protocol": "file",
"path": "image_blured.jpg",
"lifespan": 3600
},
"output_json": {
"protocol": "file",
"path": "detections.json",
"lifespan": 3600
},
"blur_plates": true,
"blur_heads": true
}{
"task_id": "686dfef9-0bb8-48a5-8f8b-452b2c5d57cc"
}