{ "info": { "author": "S\u00e9rgio Agostinho", "author_email": "sergio@sergioagostinho.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering" ], "description": "# CvxPnPL\n\nA convex Perspective-n-Points-and-Lines method.\n\n**Title:** CvxPnPL: A Unified Convex Solution to the Absolute Pose Estimation Problem from Point and Line Correspondences\n\n**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.\n\n**URL to the Paper:** TBA\n\n**License:** Apache 2.0\n\n## Installing\n\nThe easiest way to install the package is through pip\n```\npip install cvxpnpl\n```\n\nAlternatively, you can clone this repo and invoke from its root folder\n```\npython setup.py install\n```\n\n### SDP Solver, BLAS and LAPACK\n\ncvxpnpl makes use of [cvxpy](https://www.cvxpy.org/) as its opaque convex solver. However, cvxpy is only an abstraction layer and invokes [SCS](https://github.com/cvxgrp/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. With that in mind, I **really recommend that you install cvxpy through their anaconda channel**, as it will abstract away all of this dependency setup.\n\n\n## Examples\n\nThe 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](https://github.com/SergioRAgostinho/cvxpnpl/blob/master/examples).\n\n## Benchmarks\n\nA 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](https://github.com/SergioRAgostinho/cvxpnpl/blob/master/benchmarks/README.md) page on the topic.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SergioRAgostinho/cvxpnpl", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "cvxpnpl", "package_url": "https://pypi.org/project/cvxpnpl/", "platform": "", "project_url": "https://pypi.org/project/cvxpnpl/", "project_urls": { "Homepage": "https://github.com/SergioRAgostinho/cvxpnpl" }, "release_url": "https://pypi.org/project/cvxpnpl/0.2.0/", "requires_dist": [ "numpy", "cvxpy (>=1.0.0)", "scs (<2.0.0)" ], "requires_python": ">=3.5", "summary": "A convex Perspective-n-Points-and-Lines method.", "version": "0.2.0" }, "last_serial": 5579554, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "57cfb59d6c1c59077645a9c70d9a1eeb", "sha256": "da01df5b56e1e4b183f9d7867863fbd02a0afde74d98961a2b27ede10844a833" }, "downloads": -1, "filename": "cvxpnpl-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "57cfb59d6c1c59077645a9c70d9a1eeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 9354, "upload_time": "2019-05-08T11:30:56", "url": "https://files.pythonhosted.org/packages/50/c5/ef72ede7f1da002818f3426ce659b158372961abab87db9af964615cab47/cvxpnpl-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70c8d7611d998963bd0b61372a9df091", "sha256": "2392a95136975b8e1ab1f9d7672fc5448cdb95f654122ed85fbed1c3f93e2d68" }, "downloads": -1, "filename": "cvxpnpl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "70c8d7611d998963bd0b61372a9df091", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 9306, "upload_time": "2019-05-08T11:30:58", "url": "https://files.pythonhosted.org/packages/8c/f4/dfa8c18b874308d52a51d980b670df9ed3d07634cd527f73c1fe1ae96929/cvxpnpl-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "38b643aec69cef21f74dc53f9abd6088", "sha256": "1f2e755d24d90da90a6348d5fc81c167f6b8abc9dc7e803df9dd9c9f3775d6ff" }, "downloads": -1, "filename": "cvxpnpl-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "38b643aec69cef21f74dc53f9abd6088", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 13737, "upload_time": "2019-05-08T17:12:56", "url": "https://files.pythonhosted.org/packages/5b/dd/2a815416c5947eaea595ed7eec3bf874de099c14a4c9478b17e9c21ecf58/cvxpnpl-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86055ab5f361eb0d2ca41bf8f59a834c", "sha256": "d1e36e465062c161102935dae2f2f24e7e0f4db47de150734c8c1ae86ff2b9de" }, "downloads": -1, "filename": "cvxpnpl-0.1.2.tar.gz", "has_sig": false, "md5_digest": "86055ab5f361eb0d2ca41bf8f59a834c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 9573, "upload_time": "2019-05-08T17:12:58", "url": "https://files.pythonhosted.org/packages/28/e8/aa71d06008aff3966120b4ec41e3dc70ab2bc4d7e0cf5694051d2c62a3c4/cvxpnpl-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d3c16b25027e23960843a59f4bfc1790", "sha256": "7f8611e49e3f09476c43395709ee45b87b78f93c16165ee4fe8730995dd577d9" }, "downloads": -1, "filename": "cvxpnpl-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d3c16b25027e23960843a59f4bfc1790", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 13578, "upload_time": "2019-07-24T20:13:20", "url": "https://files.pythonhosted.org/packages/75/05/0c83fcc9995b0d341e90e6f493c9fd2a5464eb70c570894fde3ae09915f5/cvxpnpl-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "432450baff20c7bb8e908a4529ad7872", "sha256": "48389d8f64f1c161fa6d86baec3bb714274746fd10a006d3f978053d56ff4776" }, "downloads": -1, "filename": "cvxpnpl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "432450baff20c7bb8e908a4529ad7872", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 9416, "upload_time": "2019-07-24T20:13:21", "url": "https://files.pythonhosted.org/packages/c2/88/45e42d53c2d5fdeebca9697a310cee925361b53f9e25b4debb73ce6db399/cvxpnpl-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3c16b25027e23960843a59f4bfc1790", "sha256": "7f8611e49e3f09476c43395709ee45b87b78f93c16165ee4fe8730995dd577d9" }, "downloads": -1, "filename": "cvxpnpl-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d3c16b25027e23960843a59f4bfc1790", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 13578, "upload_time": "2019-07-24T20:13:20", "url": "https://files.pythonhosted.org/packages/75/05/0c83fcc9995b0d341e90e6f493c9fd2a5464eb70c570894fde3ae09915f5/cvxpnpl-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "432450baff20c7bb8e908a4529ad7872", "sha256": "48389d8f64f1c161fa6d86baec3bb714274746fd10a006d3f978053d56ff4776" }, "downloads": -1, "filename": "cvxpnpl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "432450baff20c7bb8e908a4529ad7872", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 9416, "upload_time": "2019-07-24T20:13:21", "url": "https://files.pythonhosted.org/packages/c2/88/45e42d53c2d5fdeebca9697a310cee925361b53f9e25b4debb73ce6db399/cvxpnpl-0.2.0.tar.gz" } ] }