Zum Inhalt
HALOWERK

Medienwerk

oss opencv landmark camera pose

Solves for the rigid transform between an object's coordinate frame and the camera, given 3D landmark coordinates, where those landmarks appear in the image, and the camera matrix and distortion. Returns the rotation and translation together with the reprojection RMSE, so a caller can tell a well-constrained pose from one that merely converged. This is the standard step for placing a known object in a scene or locating a camera against a known marker.

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

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
object_pointsarrayJa
image_pointsarrayJa
camera_matrixarrayJa
distortionarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "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
    },
    "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": -1000000000,
        "maximum": 1000000000
      },
      "minItems": 5,
      "maxItems": 5
    }
  },
  "required": [
    "object_points",
    "image_points",
    "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

{
  "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": [
    [
      274.82442322658574,
      138.0607836446957
    ],
    [
      422.81782331735394,
      154.68270558004707
    ],
    [
      405.3335625225262,
      304.75471173217716
    ],
    [
      260.9427911556416,
      295.394646129259
    ],
    [
      275.70309278688563,
      212.1756002318462
    ],
    [
      373.35347266512593,
      240.4095743603427
    ],
    [
      329.5830012375891,
      147.92099403909572
    ],
    [
      369.79289732313043,
      275.787735327383
    ]
  ],
  "camera_matrix": [
    [
      600,
      0,
      320
    ],
    [
      0,
      620,
      240
    ],
    [
      0,
      0,
      1
    ]
  ],
  "distortion": [
    0,
    0,
    0,
    0,
    0
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://medien.halowerk.com/v1/oss-opencv-landmark-camera-pose/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 →