---
title: "Decode frame for numpy"
method: GET
path: "/instances/{id}/frames/{frame}/numpy"
tags: ["Instances"]
---

# Decode frame for numpy

`GET /instances/{id}/frames/{frame}/numpy`

Decode one frame of interest from the given DICOM instance, for use with numpy in Python. The numpy array has 3 dimensions: (height, width, color channel).

## Path parameters

- `frame` number, required
- `id` string, required

## Query parameters

- `compress` boolean
- `rescale` boolean

## Response `200`

---

[API](https://skmtc.net/uclouvain/apis/orthanc-api.md) · [All operations](https://skmtc.net/uclouvain/apis/orthanc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uclouvain/orthanc-api/versions/9297c4930d96/schema)
