Blocked exit detection API

Detect objects blocking an exit door or exit path in camera images.

What it detects

Check stockrooms, loading areas and corridors for boxes, pallets or carts obstructing an exit.

Detection
An exit door or exit path blocked by boxes, pallets, carts, furniture or other objects.
Outside the definition
Exits and exit paths clear.

Send a camera image.

Set KIRKWOOD_API_KEY on your server. Save a frame as frame.jpg.

Python POST /v1/analyze
import base64
import json
import os
import urllib.request

with open("frame.jpg", "rb") as frame:
    image = base64.b64encode(frame.read()).decode()

body = json.loads('''{
  "images": [
    "<BASE64_JPEG>"
  ],
  "tags": [
    "blocked_exit"
  ],
  "detections": {
    "return_boxes": true
  }
}''')
body["images"] = [image]
request = urllib.request.Request(
    "https://app.kirkwood.ai/v1/analyze",
    data=json.dumps(body).encode(),
    headers={
        "Authorization": "Bearer " + os.environ["KIRKWOOD_API_KEY"],
        "Content-Type": "application/json",
    },
    method="POST",
)
with urllib.request.urlopen(request, timeout=120) as response:
    print(json.dumps(json.load(response), indent=2))

Read the result

The blocked_exit tag returns an answer and probability. Your application can store the camera location alongside the flagged frame.

Camera setup

Make sure both the door and its approach are visible. Test clear paths as well as objects placed across the route.

Try it on your footage.

Run this tag through the API using the Python example, or request a live demo to try it with us.

Approved account required. Analysis uses credit. Images are retained for annotation and training.

Request a live demo

API pricing

Billed per image analyzed. Contact us for your rate.

Request pricing

Before you integrate

This is a visual obstruction check. It does not inspect door hardware or certify compliance with a building or fire code.

Can it check a path as well as a door?

Yes. The tag covers an exit door or exit path blocked by boxes, pallets, carts, furniture or other objects.

API guide