Skip to content
Fourohtwo

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

Remove lens distortion from a grayscale image using a supplied five-coefficient model, keeping the camera matrix and the image dimensions unchanged. 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

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

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-calibrated-lens-undistort", {
  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

More from HALOWERK Medien