https://github.com/sergioragostinho/zhou-accv-2018
A Python 3 implementation of "A Stable Algebraic Camera Pose Estimation for Minimal Configurations of 2D/3D Point and Line Correspondences." by Zhou et al. ACCV 2018
https://github.com/sergioragostinho/zhou-accv-2018
2d-3d 2d-3d-correspondences 3d 6dof 6dof-pose absolute-pose computer-vision lines minimal p1p2l p2p1l p3l p3p points pose pose-estimation python python-3 python3 registration
Last synced: 2 months ago
JSON representation
A Python 3 implementation of "A Stable Algebraic Camera Pose Estimation for Minimal Configurations of 2D/3D Point and Line Correspondences." by Zhou et al. ACCV 2018
- Host: GitHub
- URL: https://github.com/sergioragostinho/zhou-accv-2018
- Owner: SergioRAgostinho
- License: apache-2.0
- Created: 2019-05-16T09:48:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T14:10:50.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T21:13:35.758Z (3 months ago)
- Topics: 2d-3d, 2d-3d-correspondences, 3d, 6dof, 6dof-pose, absolute-pose, computer-vision, lines, minimal, p1p2l, p2p1l, p3l, p3p, points, pose, pose-estimation, python, python-3, python3, registration
- Language: C
- Homepage:
- Size: 90.8 KB
- Stars: 31
- Watchers: 4
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction
A Python 3 implementation of the absolute pose estimation method for minimal configurations of mixed points and lines introduced by Zhou et al. in
> Lipu Zhou, Jiamin Ye, and Michael Kaess. A Stable Algebraic Camera Pose Estimation for Minimal Configurations of 2D/3D Point and Line Correspondences. In Asian Conference on Computer Vision, 2018.
The methods implemented are able to address 4 modalities of minimal problems, namely: perspective-3-points (P3P), perspective-2-points-1-line (P2P1L), perspective-1-point-2-lines (P1P2L) and perspective-3-lines (P3L).
This package also includes an implementation the robustified version of Kukelova et al. E3Q3 method presented in> Zuzana Kukelova, Jan Heller, and Andrew Fitzgibbon. Efficient intersection of three quadrics and applications in computer vision. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
They are clearly isolated, so if you're only interested in E3Q3 you can import it separate from everything else.
```python
from zhou_accv_2018 import e3q3
```**License:** Apache 2.0
## Installing
Clone this repo and invoke from its root folder
```
python setup.py install
```## Examples
The library exposes 5 public functions: `p3p`, `p3l`, `p2p1l`, `p1p2l`, and `e3q3`. You can find a couple of examples showing how to use each in the [examples folder](https://github.com/SergioRAgostinho/zhou-accv-2018/blob/master/examples).
## Interesting Facts
Despite being a Python implementation, the majority of code is written in C. It is a really small section if compared with the extent of the full implementation, but it is way bigger than everything else in its sheer byte size! There are some really long expressions in a very small fraction of the code which Python's interpreter simply couldn't parse, so I've relegated that job to a C compiler.