Skip to content
Fourohtwo

medien.halowerk.com/v1/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).

BaseUnchecked
POSThttps://medien.halowerk.com/v1/oss-opencv-lens-undistort-camera-pose

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://medien.halowerk.com/v1/oss-opencv-lens-undistort-camera-pose", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"camera_matrix":[[45,0,7.5],[0,45,7.5],[0,0,1]],"distortion":[0.2,0.01,0,0,0],"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,3),
});
console.log(await res.json());

Example input

{"camera_matrix":[[45,0,7.5],[0,45,7.5],[0,0,1]],"distortion":[0.2,0.01,0,0,0],"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,3