Zum Inhalt
HALOWERK

Medienwerk

oss opencv calibrated lens undistort

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.

POST https://medien.halowerk.com/v1/oss-opencv-calibrated-lens-undistort

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
imagearrayJa
camera_matrixarrayJa
distortionarrayJa
Vollständiges Eingabeschema anzeigen
{
  "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."
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "image": [
    [
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30
    ],
    [
      1,
      3,
      5,
      7,
      9,
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31
    ],
    [
      2,
      4,
      6,
      8,
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32
    ],
    [
      3,
      5,
      7,
      9,
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33
    ],
    [
      4,
      6,
      8,
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34
    ],
    [
      5,
      7,
      9,
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35
    ],
    [
      6,
      8,
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34,
      36
    ],
    [
      7,
      9,
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35,
      37
    ],
    [
      8,
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34,
      36,
      38
    ],
    [
      9,
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35,
      37,
      39
    ],
    [
      10,
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34,
      36,
      38,
      40
    ],
    [
      11,
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35,
      37,
      39,
      41
    ],
    [
      12,
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34,
      36,
      38,
      40,
      42
    ],
    [
      13,
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35,
      37,
      39,
      41,
      43
    ],
    [
      14,
      16,
      18,
      20,
      22,
      24,
      26,
      28,
      30,
      32,
      34,
      36,
      38,
      40,
      42,
      44
    ],
    [
      15,
      17,
      19,
      21,
      23,
      25,
      27,
      29,
      31,
      33,
      35,
      37,
      39,
      41,
      43,
      45
    ]
  ],
  "camera_matrix": [
    [
      45,
      0,
      7.5
    ],
    [
      0,
      45,
      7.5
    ],
    [
      0,
      0,
      1
    ]
  ],
  "distortion": [
    0.2,
    0.01,
    0,
    0,
    0
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://medien.halowerk.com/v1/oss-opencv-calibrated-lens-undistort/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →