CvxPnPL
A convex Perspective-n-Points-and-Lines method.
Title: CvxPnPL: A Unified Convex Solution to the Absolute Pose Estimation Problem from Point and Line Correspondences
Abstract: We present a new convex method to estimate 3D pose from mixed combinations of 2D-3D point and line correspondences, the Perspective-n-Points-and-Lines problem (PnPL). We merge the contributions of each point and line into a unified Quadratic Constrained Quadratic Problem (QCQP) and then relax it into a Semi Definite Program (SDP) through Shor's relaxation. This makes it possible to gracefully handle mixed configurations of points and lines. Furthermore, the proposed relaxation allows us to recover a finite number of solutions under ambiguous configurations. In such cases, the 3D pose candidates are found by further enforcing geometric constraints on the solution space and then retrieving such poses from the intersections of multiple quadrics. Experiments provide results in line with the best performing state of the art methods while providing the flexibility of solving for an arbitrary number of points and lines.
URL to the Paper: arXiv
License: Apache 2.0
Installing
The easiest way to install the package is through pip
pip install cvxpnpl
Alternatively, you can clone this repo and invoke from its root folder
python setup.py install
SDP Solver, BLAS and LAPACK
cvxpnpl makes use of SCS to obtain a solution to the underlying SDP problem. SCS requires BLAS and LAPACK which can be painful to set up for Windows users. As of version 2.0.0, SCS is permanently linking with LAPACK and BLAS and it is possible that the process is now easier for Windows users as well.
Examples
The library exposes 3 public functions: pnp, pnl and pnpl. You can find a couple of examples showing how to use each in the examples folder.
Benchmarks
A number of benchmarks were conducted in order to validate the robustness of cvxpnpl in various scenarios and compare it against other methods. Please check the dedicated README page on the topic.
Metadata
Release files for cvxpnpl 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cvxpnpl-1.1.0.tar.gz | 14.9 kB | Without provenance | Details for cvxpnpl-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cvxpnpl-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for cvxpnpl-1.1.0-py3-none-any.whl |
Total release size: 29.5 kB
Release files / cvxpnpl-1.1.0.tar.gz
| Download URL | cvxpnpl-1.1.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfc938292523165cdc98dd838ba0fc675edbcaf80ef3b01ec6e3fe330c6ccf68
|
|
BLAKE2b-256 checksum How to use checksums |
f952e5581905843c65afdf60984178f188009591a461f6fd0af3e283d787eb62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / cvxpnpl-1.1.0-py3-none-any.whl
| Download URL | cvxpnpl-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5cc6ea045550e263509b1c5a9b32978344512695310df2768491b0590eb616e
|
|
BLAKE2b-256 checksum How to use checksums |
fb8419572522a99458b47e22cdf213b1967b22ce4565bf459686bc1424e16ac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Security for cvxpnpl 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.