Fence climbing detection API

Detect people climbing fences, gates, walls and railings in camera images.

What it detects

Monitor a perimeter for people climbing over a barrier or sitting on top of it.

Detection
A person climbing over or onto a fence, wall, gate or railing, or standing or sitting on top of one.
Outside the definition
Nobody climbing; people walking past or leaning on a fence.

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": [
    "person_climbing"
  ],
  "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 person_climbing result includes an answer and p_yes. Person bounding boxes help your application show who is in the frame.

Camera setup

Frame the barrier and the space immediately around it. Test people walking past, leaning on and climbing the same fence.

Recorded camera example.

Try it on your footage.

Upload an image and select “Person climbing”. Run analysis.

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

Open the live Playground

Before you integrate

A positive result describes climbing or being on top of a barrier. It does not determine whether that person has permission to enter.

Does it only work with chain-link fences?

The catalog covers fences, walls, gates and railings. Test your own barrier type and camera angle before setting an alert threshold.

API guide

API pricing

Billed per image analyzed. Contact us for your rate.

Request pricing