# Image

{% hint style="info" %}
For all headers refer to [Overview](https://axibo-support.gitbook.io/axibo-docs/axibo-rest-api-work-in-progress/overview) --> Headers
{% endhint %}

### Config Camera Request

The purpose of this request is to allow the AXIBO to configure its camera.

#### Endpoint

```uri
PUT http://{axibo-ip}:2200/v1/imaging/config
```

#### Body Properties

<table><thead><tr><th>Property</th><th>Type</th><th>Required</th><th width="202">Description</th></tr></thead><tbody><tr><td><code>imgWidth</code></td><td>int</td><td>Yes</td><td>Set the image height.</td></tr><tr><td><code>imgHeight</code></td><td>int</td><td>Yes</td><td>Set the image width.</td></tr><tr><td><code>rotation</code></td><td>string</td><td>Yes</td><td>Set the rotation of the AXIBO camera.</td></tr><tr><td><code>case</code></td><td>int</td><td>Yes</td><td></td></tr><tr><td><code>feed</code></td><td>string</td><td>Yes</td><td>Set whether the feed is from the AXIBO or HDMI.</td></tr><tr><td><code>exposure</code></td><td>float</td><td>Yes</td><td>Set the exposure of the camera.</td></tr><tr><td><code>autoExpo</code></td><td>int</td><td>Yes</td><td>Enable/Disable auto exposure.</td></tr><tr><td><code>hdmiRotation</code></td><td>string</td><td>No</td><td>Set the HDMI rotation.</td></tr></tbody></table>

#### Example (PUT)

```json
{
    "case": 2,
    "feed": "00",
    "imgWidth": 640,
    "imgheight": 480,
    "rotation": "90_CCW",
    "exposure": 0,
    "autoExpo": 1,
    "hdmiRotation": "0",
}
```

### Camera Image Requests

This request will capture an image from the AXIBO camera.

#### Endpoint

```url
GET http://{axibo-ip}:2200/v1/imaging/cam
```

### Config Camera Request

This request will return the current camera configuration.

#### Endpoint&#x20;

```url
GET http://{axibo-ip}:2200/v1/imaging/config
```

#### Example (GET)&#x20;

```json
{
    "case": 2,
    "feed": "11",
    "imgWidth": 640,
    "imgheight": 480,
    "rotation": "0",
    "exposure": 0.03,
    "gain": 14,
    "autoExpo": 0,
    "enableRaw": 1,
    "enableJpg": 1,
    "enableBase64": 1,
    "poseDetection": 0,
    "createPadding": 0,
    "hdmiWidth": 640,
    "hdmiHeight": 480,
    "hdmiRotation": "0",
}
```

### Matrix Calibration Request

This request will return the matrix calibration.&#x20;

#### Endpoint&#x20;

```url
GET http://{axibo-ip    }:2200/v1/imaging/calib
```

#### Example (GET)&#x20;

```json
{
    "status": 200,
    "message": "317.07 0.00 351.00\n0.00 315.76 170.50\n0.00 0.00 1.00\n"
}
```
