{"slug":"medien-halowerk-com-v1-oss-opencv-calibrated-lens-undistort-d4a3d3","title":"Resamples a grayscale image to remove radial and tangential lens distortion, usi","host":"medien.halowerk.com","method":"POST","resource":"https://medien.halowerk.com/v1/oss-opencv-calibrated-lens-undistort","category":"image","description":"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 chang","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1206,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"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,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]]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"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.","properties":{"camera_matrix":{"items":{"items":{"maximum":1000000000,"minimum":-1000000000,"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"maxItems":3,"minItems":3,"type":"array"},"distortion":{"items":{"maximum":2,"minimum":-2,"type":"number"},"maxItems":5,"minItems":5,"type":"array"},"image":{"items":{"items":{"maximum":255,"minimum":0,"type":"integer"},"maxItems":256,"minItems":16,"type":"array"},"maxItems":256,"minItems":16,"type":"array"}},"required":["image","camera_matrix","distortion"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"operation":{"const":"calibrated-lens-undistort"},"result":{"additionalProperties":false,"properties":{"height":{"minimum":0,"type":"integer"},"image":{"items":{"items":{"maximum":255,"minimum":0,"type":"integer"},"maxItems":256,"minItems":16,"type":"array"},"maxItems":256,"minItems":16,"type":"array"},"warnings":{"items":{"maxLength":1024,"type":"string"},"maxItems":8,"minItems":1,"type":"array"},"width":{"minimum":0,"type":"integer"}},"required":["image","width","height","warnings"],"type":"object"},"runtime_ms":{"minimum":0,"type":"number"},"upstream":{"additionalProperties":false,"properties":{"binary_sha256":{"const":"1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c"},"components":{"const":["undistort"]},"numpy_version":{"const":"2.5.0"},"package_version":{"const":"4.13.0.92"},"project":{"const":"OpenCV"},"version":{"const":"4.13.0"}},"required":["project","version","package_version","binary_sha256","numpy_version","components"],"type":"object"}},"required":["operation","result","upstream","runtime_ms"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1206,"error":null}],"description_full":"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.","last_updated":"2026-10-25T16:42:37.142Z","schemes":["exact"]}