Crates.io | sqpnp_simple |
lib.rs | sqpnp_simple |
version | 0.1.5 |
source | src |
created_at | 2024-11-27 22:27:28.512139 |
updated_at | 2024-12-04 22:08:34.617441 |
description | SQPnp camera pose estimation |
homepage | https://github.com/powei-lin/sqpnp_simple |
repository | https://github.com/powei-lin/sqpnp_simple |
max_upload_size | |
id | 1463701 |
size | 25,359 |
A pure rust implementation of SQPnP. It's a simplified version. Here's the original c++ implementation.
use sqpnp_simple::sqpnp_solve;
// p3ds: &[(f64, f64, f64)] 3D points (x, y, z)
// p2ds: &[(f64, f64)] 2D undistorted image points on z=1 plane
let (rvec, tvec) = sqpnp_solve(&p3ds, &p2ds).unwrap();
cargo run -r --example random_points
@inproceedings{terzakis2020SQPnP,
title={A Consistently Fast and Globally Optimal Solution to the Perspective-n-Point Problem},
author={George Terzakis and Manolis Lourakis},
booktitle={European Conference on Computer Vision},
pages={478--494},
year={2020},
publisher={Springer International Publishing}
}