{"service":"HALOWERK medienwerk","endpoint":"/v1/oss-opencv-lens-undistort-camera-pose","method":"POST","content_type":"application/json","inputSchema":{"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."},"requestExample":{"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]]},"operations":[{"method":"POST","inputSchema":{"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."},"requestExample":{"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]]}}],"outputSchema":{"type":"object","properties":{"operation":{"const":"lens-undistort-camera-pose"},"undistort":{"type":"object","properties":{"operation":{"const":"calibrated-lens-undistort"},"result":{"type":"object","properties":{"image":{"type":"array","items":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255},"minItems":16,"maxItems":256},"minItems":16,"maxItems":256},"width":{"type":"integer","minimum":0},"height":{"type":"integer","minimum":0},"warnings":{"type":"array","items":{"type":"string","maxLength":1024},"minItems":1,"maxItems":8}},"required":["image","width","height","warnings"],"additionalProperties":false},"upstream":{"type":"object","properties":{"project":{"const":"OpenCV"},"version":{"const":"4.13.0"},"package_version":{"const":"4.13.0.92"},"binary_sha256":{"const":"1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c"},"numpy_version":{"const":"2.5.0"},"components":{"const":["undistort"]}},"required":["project","version","package_version","binary_sha256","numpy_version","components"],"additionalProperties":false},"runtime_ms":{"type":"number","minimum":0}},"required":["operation","result","upstream","runtime_ms"],"additionalProperties":false},"pose":{"type":"object","properties":{"operation":{"const":"landmark-camera-pose"},"result":{"type":"object","properties":{"rotation":{"type":"array","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"minItems":3,"maxItems":3},"translation":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"reprojection_rmse_pixels":{"type":"number","minimum":0},"warnings":{"type":"array","items":{"type":"string","maxLength":1024},"minItems":1,"maxItems":8}},"required":["rotation","translation","reprojection_rmse_pixels","warnings"],"additionalProperties":false},"upstream":{"type":"object","properties":{"project":{"const":"OpenCV"},"version":{"const":"4.13.0"},"package_version":{"const":"4.13.0.92"},"binary_sha256":{"const":"1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c"},"numpy_version":{"const":"2.5.0"},"components":{"const":["solvePnP","Rodrigues","projectPoints"]}},"required":["project","version","package_version","binary_sha256","numpy_version","components"],"additionalProperties":false},"runtime_ms":{"type":"number","minimum":0}},"required":["operation","result","upstream","runtime_ms"],"additionalProperties":false},"price_note":{"type":"string"},"runtime_ms":{"type":"number","minimum":0}},"required":["operation","undistort","pose","runtime_ms"],"additionalProperties":false},"outputExample":{"operation":"lens-undistort-camera-pose","undistort":{"operation":"calibrated-lens-undistort","result":{"image":[[0,2,4,6,7,10,12,14,16,17,19,21,23,24,26,25],[1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,29],[2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,30],[3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,31],[4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,32],[5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,34],[6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,35],[7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,36],[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,37],[9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,38],[10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,39],[10,13,15,17,19,21,23,25,27,29,31,33,35,37,39,38],[11,14,16,18,20,22,24,26,28,30,32,34,36,38,40,39],[12,15,17,19,21,23,25,27,29,31,33,35,37,39,41,40],[13,16,18,20,22,24,26,28,30,32,34,36,38,40,42,41],[12,16,18,20,22,24,26,28,30,32,34,35,37,39,40,37]],"width":16,"height":16,"warnings":["The original camera matrix and dimensions are retained; pixels mapped outside the source image are zero."]},"upstream":{"project":"OpenCV","version":"4.13.0","package_version":"4.13.0.92","binary_sha256":"1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c","numpy_version":"2.5.0","components":["undistort"]},"runtime_ms":0.515},"pose":{"operation":"landmark-camera-pose","result":{"rotation":[[0.9806970724960888,-0.1007034489923423,-0.16760688338683394],[0.07862354243995694,0.9879206144678995,-0.1335335092160777],[0.1790295801586803,0.11777807465914329,0.9767685163629057]],"translation":[0.030000000640771046,-0.02000000487000844,0.800000018901866],"reprojection_rmse_pixels":3.0171708189510797e-7,"warnings":["The transform maps object coordinates into camera coordinates; ambiguous scenes may admit other poses."]},"upstream":{"project":"OpenCV","version":"4.13.0","package_version":"4.13.0.92","binary_sha256":"1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c","numpy_version":"2.5.0","components":["solvePnP","Rodrigues","projectPoints"]},"runtime_ms":0.824},"price_note":"One call at 0.0035 USDC replaces /v1/oss-opencv-calibrated-lens-undistort (0.002) plus /v1/oss-opencv-landmark-camera-pose (0.002).","runtime_ms":558},"tags":["opencv","lens-undistortion","camera-pose","pose-estimation","computer-vision"]}