Api Endpoint

HALOWERK Medien

Resamples a grayscale image to remove radial and tangential lens distortion, using the camera matrix and five distortion coefficients you supply — typically from a planar calibration. Dimensions and camera matrix are preserved, so the corrected image drops into an existing pipeline without any change to geometry downstream. Because the output frame is unchanged, strongly distorted corners are pushed outside the image and are simply lost rather than being retained in a larger canvas.

Open interactive test console

Offering

Provider
medien.halowerk.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://medien.halowerk.com/v1/oss-opencv-calibrated-lens-undistort
MIME type
application/json
First seen
2026-10-16T03:02:07.735Z
Last seen
Tags
oss, opencv, p009

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E"
  }
]

Observed health

Status
Healthy
Latest latency
325 ms
Average latency
935 ms
HTTP status
204
Last checked
Reachability
100% over 10 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "image": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 255
            },
            "minItems": 16,
            "maxItems": 256
          },
          "minItems": 16,
          "maxItems": 256
        },
        "camera_matrix": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "number",
              "minimum": -1000000000,
              "maximum": 1000000000
            },
            "minItems": 3,
            "maxItems": 3
          },
          "minItems": 3,
          "maxItems": 3
        },
        "distortion": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -2,
            "maximum": 2
          },
          "minItems": 5,
          "maxItems": 5
        }
      },
      "required": [
        "image",
        "camera_matrix",
        "distortion"
      ],
      "additionalProperties": false,
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "description": "Numeric JSON arrays only. Additionally enforce equal paired dimensions, nondegenerate geometry, maximum 32768 pixels/image, 131072 scalars/array, and 1048576 encoded bytes. No paths or network resources."
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "description": "Numeric JSON arrays only. Additionally enforce equal paired dimensions, nondegenerate geometry, maximum 32768 pixels/image, 131072 scalars/array, and 1048576 encoded bytes. No paths or network resources.",
          "properties": {
            "camera_matrix": {
              "items": {
                "items": {
                  "maximum": 1000000000,
                  "minimum": -1000000000,
                  "type": "number"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "maxItems": 3,
              "minItems": 3,
              "type": "array"
            },
            "distortion": {
              "items": {
                "maximum": 2,
                "minimum": -2,
                "type": "number"
              },
              "maxItems": 5,
              "minItems": 5,
              "type": "array"
            },
            "image": {
              "items": {
                "items": {
                  "maximum": 255,
                  "minimum": 0,
                  "type": "integer"
                },
                "maxItems": 256,
                "minItems": 16,
                "type": "array"
              },
              "maxItems": 256,
              "minItems": 16,
              "type": "array"
            }
          },
          "required": [
            "image",
            "camera_matrix",
            "distortion"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": false,
          "properties": {
            "operation": {
              "const": "calibrated-lens-undistort"
            },
            "result": {
              "additionalProperties": false,
              "properties": {
                "height": {
                  "minimum": 0,
                  "type": "integer"
                },
                "image": {
                  "items": {
                    "items": {
                      "maximum": 255,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "maxItems": 256,
                    "minItems": 16,
                    "type": "array"
                  },
                  "maxItems": 256,
                  "minItems": 16,
                  "type": "array"
                },
                "warnings": {
                  "items": {
                    "maxLength": 1024,
                    "type": "string"
                  },
                  "maxItems": 8,
                  "minItems": 1,
                  "type": "array"
                },
                "width": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "image",
                "width",
                "height",
                "warnings"
              ],
              "type": "object"
            },
            "runtime_ms": {
              "minimum": 0,
              "type": "number"
            },
            "upstream": {
              "additionalProperties": false,
              "properties": {
                "binary_sha256": {
                  "const": "1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c"
                },
                "components": {
                  "const": [
                    "undistort"
                  ]
                },
                "numpy_version": {
                  "const": "2.5.0"
                },
                "package_version": {
                  "const": "4.13.0.92"
                },
                "project": {
                  "const": "OpenCV"
                },
                "version": {
                  "const": "4.13.0"
                }
              },
              "required": [
                "project",
                "version",
                "package_version",
                "binary_sha256",
                "numpy_version",
                "components"
              ],
              "type": "object"
            }
          },
          "required": [
            "operation",
            "result",
            "upstream",
            "runtime_ms"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}