{"uid":"cap_lrrByZRcdLxBwugVAHxnR","slug":"halowerk-opencv-landmark-camera-pose-estimation-0b7fcbc8","name":"HALOWERK OpenCV Landmark Camera Pose Estimation","description":"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.","url":"https://medien.halowerk.com/v1/oss-opencv-landmark-camera-pose?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"distortion":{"type":"array","items":{"type":"number","maximum":1000000000,"minimum":-1000000000},"maxItems":5,"minItems":5},"image_points":{"type":"array","items":{"type":"array","items":{"type":"number","maximum":1000000000,"minimum":-1000000000},"maxItems":2,"minItems":2},"maxItems":2048,"minItems":6},"camera_matrix":{"type":"array","items":{"type":"array","items":{"type":"number","maximum":1000000000,"minimum":-1000000000},"maxItems":3,"minItems":3},"maxItems":3,"minItems":3},"object_points":{"type":"array","items":{"type":"array","items":{"type":"number","maximum":1000000000,"minimum":-1000000000},"maxItems":3,"minItems":3},"maxItems":2048,"minItems":6}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZaAXdfderxbg2k5LdzQDD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Solves for the 6-DoF rigid transform (rotation + translation) between an object coordinate frame and the camera using 3D-to-2D landmark correspondences, returning the pose vectors and reprojection RMSE.","exampleAgentPrompt":"I have 3D coordinates of 8 landmarks on a known object, their matching 2D pixel positions in an image, the 3x3 camera intrinsic matrix, and 5 distortion coefficients — can you run OpenCV's solvePnP on these and give me the rotation vector, translation vector, and reprojection RMSE?","exampleUseCases":[{"title":"AR object placement in scene","prompt":"I'm building an AR app and need to place a virtual overlay on a physical box. I have the 3D corners of the box in object space, their 2D pixel locations in my camera image, the camera intrinsic matrix, and distortion coefficients — can you estimate the box's pose relative to the camera and tell me the reprojection error so I know if the solution is reliable?"},{"title":"Fiducial marker localization for robotics","prompt":"I have a known 3D model of a fiducial marker mounted in a robot workspace, I've detected 10 of its landmarks in an image and recorded their pixel coordinates, and I have the camera matrix and distortion params — please run solvePnP and return the rotation and translation so my robot can compute its position relative to the marker."},{"title":"Camera extrinsic calibration from known target","prompt":"I've got a calibration target with 12 known 3D points and their corresponding 2D detections in an image, along with the camera intrinsics and distortion — compute the rotation and translation vectors that describe the camera's pose relative to the target and give me the reprojection RMSE so I can validate the calibration quality."}],"resultDescription":"Returns the solved rotation vector (Rodrigues, 3 elements), translation vector (3 elements) expressing the object-to-camera rigid transform, and the reprojection RMSE in pixels indicating how well the estimated pose reprojects the 3D points back onto the image plane.","failureModes":["Fewer than 6 point correspondences provided — rejected by schema validation","Degenerate or coplanar point configurations causing solvePnP to fail or produce unstable results","Camera matrix not a valid 3x3 array — schema error","Distortion array not exactly 5 elements — schema error","High reprojection RMSE indicating a poorly constrained or incorrect pose — returned in result for caller to evaluate","Mismatched number of object_points and image_points causing solver failure"],"whenToPreferThis":"Choose this endpoint when you need a remote, pay-per-call OpenCV solvePnP implementation without managing a local OpenCV environment. Ideal for agents or serverless pipelines that already have 3D-2D correspondences, camera intrinsics, and distortion coefficients ready and need a reliable pose solve with reprojection quality feedback. Prefer over manual deployment when cost per call ($0.002 USDC) is acceptable and avoiding infrastructure overhead matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:12.743Z","isFirstParty":false,"canonicalSlug":"halowerk-opencv-landmark-camera-pose-estimation-0b7fcbc8"}