Process a file

Blur It Post

post

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.

output_mediaall ofOptional
output_jsonall ofOptional
blur_platesbooleanOptionalDefault: true
blur_headsbooleanOptionalDefault: true
Responses
200
Successful Response
application/json
post
POST /api/blur_it HTTP/1.1
Host: 
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"
}