Blurit On-Premise Documentation
1.0.0
1.0.0
  • Blurit On-Premise
    • ๐Ÿš€Getting started
    • ๐Ÿ’ปRequirements
    • ๐Ÿ–Š๏ธInstallation
      • Linux dependencies
      • Windows dependencies (WSL)
      • Configuration
      • Run BlurIt OP
      • Multi-servers installation
      • Post installation verifications
    • ๐ŸŽ‡Usage
      • Manager Webapp
      • API
        • License
        • Tasks
          • Process a directory
          • Process a file
          • Get the status of a task
    • Version notes
Powered by GitBook
On this page
  1. Blurit On-Premise
  2. Usage
  3. API
  4. Tasks

Process a file

PreviousProcess a directoryNextGet the status of a task
๐ŸŽ‡

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
422
Validation Error
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"
}