Skip to content
HALOWERK

Media and Speech Processing

oss opencv lens undistort camera pose

Lens undistortion plus camera pose estimation in one paid call (OpenCV 4.13). Send the same fields as /v1/oss-opencv-calibrated-lens-undistort and /v1/oss-opencv-landmark-camera-pose: grayscale image, camera matrix, five distortion coefficients, 3D object points and their pixel positions. Returns the undistorted image plus rotation, translation and reprojection RMSE of the camera pose (solvePnP). 0.0035 USDC instead of 0.004 for both single calls.

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

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
imagearrayYes
camera_matrixarrayYes
distortionarrayYes
object_pointsarrayYes
image_pointsarrayYes
Show full input schema
{
  "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
    },
    "object_points": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "minItems": 3,
        "maxItems": 3
      },
      "minItems": 6,
      "maxItems": 2048
    },
    "image_points": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "minItems": 2,
        "maxItems": 2
      },
      "minItems": 6,
      "maxItems": 2048
    }
  },
  "required": [
    "image",
    "camera_matrix",
    "distortion",
    "object_points",
    "image_points"
  ],
  "additionalProperties": false,
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Union of the input fields of /v1/oss-opencv-calibrated-lens-undistort (image, camera_matrix, distortion) and /v1/oss-opencv-landmark-camera-pose (object_points, image_points, camera_matrix, distortion). camera_matrix and distortion are shared. image_points are pixel positions in the original (distorted) image. Numeric JSON arrays only; maximum 32768 pixels, 1048576 encoded bytes. No paths or network resources."
}

Open original schema

Published input example

{
  "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
  ],
  "object_points": [
    [
      -0.1,
      -0.1,
      0
    ],
    [
      0.1,
      -0.1,
      0
    ],
    [
      0.1,
      0.1,
      0
    ],
    [
      -0.1,
      0.1,
      0
    ],
    [
      -0.08,
      0,
      0.1
    ],
    [
      0.1,
      0.04,
      0.2
    ],
    [
      0,
      -0.1,
      0.15
    ],
    [
      0.07,
      0.08,
      0.09
    ]
  ],
  "image_points": [
    [
      4.089635,
      0.052715
    ],
    [
      15.28601,
      1.247651
    ],
    [
      13.939933,
      12.229251
    ],
    [
      3.055042,
      11.534801
    ],
    [
      4.17277,
      5.477471
    ],
    [
      11.507841,
      7.529774
    ],
    [
      8.221936,
      0.786991
    ],
    [
      11.242104,
      10.102808
    ]
  ]
}

Result & documentation

Show published result schema
{
  "$ref": "https://medien.halowerk.com/v1/oss-opencv-lens-undistort-camera-pose/schema#/outputSchema"
}

Open published result example

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →