---
title: "Undistort Image"
method: POST
path: "/images/undistort"
tags: ["images"]
---

# Undistort Image

`POST /images/undistort`

Undistort an image using camera calibration parameters.

Args:
    image: The image file to undistort
    calibration: Camera calibration file containing camera matrix and distortion coefficients
    alpha: Free scaling parameter (0=crop to valid pixels, 1=keep all pixels)

Returns:
    The undistorted image

## Query parameters

- `alpha` number

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/rmfg/apis/fastapi.md) · [All operations](https://skmtc.dev/rmfg/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rmfg/fastapi/revisions/17a4ad42a016/schema)
