---
title: "Capture Boundingbox 2D"
method: GET
path: "/periphery/cameras/capture/bounding-box-2d"
tags: ["Periphery (Camera)"]
---

# Capture Boundingbox 2D

`GET /periphery/cameras/capture/bounding-box-2d`

Retrieves 2D bounding box data for specified object classes from the scene.
Use the `set_semantic_label` endpoint to assign labels to scene entities.

## Query parameters

- `result_type` 'json' | 'rgb_png', required — Format which will be used to represent the captured data
- `object_class` string[] — Classes of objects to include in the 2D bounding box output. If not specified, returns all labeled instances.
- `camera_prim_path` string, required — Path of camera prim
- `width` integer — Image width in px
- `height` integer — Image height in px

## Response `200`

Successfully fetched 2D bounding box data

- BoundingBox2D[]
  - `label` string, required — Class label for the detected object
  - `bbox` number[], required — Bounding box coordinates [x_min, y_min, x_max, y_max]
  - `prim_path` string, required — Path to the USD prim of the detected object
  - `semantic_id` integer, required — Semantic ID of the detected object

## Other responses

- `404` — Camera not configured
- `422` — Validation Error
- `500` — Could not fetch 2D bounding box data

---

[API](https://skmtc.net/wandelbotsgmbh/apis/wandelbots-nova-isaac-sim-extension-api.md) · [All operations](https://skmtc.net/wandelbotsgmbh/apis/wandelbots-nova-isaac-sim-extension-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandelbotsgmbh/wandelbots-nova-isaac-sim-extension-api/revisions/a0efd7dad77c/schema)
