Library to work with calibration from bbo-calibcam
Project description
calibcamlib
Library to work with calibration from bbo-calibcam
Installation
Install via pip as bbo-calibcamlib.
Usage
Load a calibration with
cs = calibcamlib.Camerasystem.load([PATH TO multicam_calibration.yml])
Use calibrated camera system with
coords2d = cs.project(self, X, offsets=None)
# Project points in space of shape np.array((..., 3)) to all cameras.
# Returns image coordinates np.array((N_CAMS, ..., 2))
dirs, cam_pos = cs.get_camera_lines(self, x, offsets=None)
# Get camera lines corresponding to image coordinates in shape np.array((N_CAMS, ..., 2)) for all cameras.
# Returns directions from camera np.array((N_CAMS, ..., 3)) and camera positions np.array((N_CAMS, ..., 3))
# in world coordinates (for direct triangulation)
coords3d = cs.triangulate(self, x, offsets=None)
# Triangulate image coordinates in shape np.array((N_CAMS, ..., 2)) by minimizing reprojection error.
# Returns 3d points np.array((..., 3)) in world coordinates.
coords3d = cs.triangulate_3derr(self, x, offsets=None)
# Triangulate image coordinates in shape np.array((N_CAMS, ..., 2)) by finding the closest point to camera lines
# Returns 3d points np.array((..., 3)) in world coordinates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bbo_calibcamlib-0.3.14.tar.gz
(22.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bbo_calibcamlib-0.3.14.tar.gz.
File metadata
- Download URL: bbo_calibcamlib-0.3.14.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1469d39b617e6f0f2bf1891c8b20ab6cd4fec15fd31bc38a878f4df3ccc8a758
|
|
| MD5 |
f921cdae5b9576bbee81da2f110280ae
|
|
| BLAKE2b-256 |
4061ee4e8aa8775b859472818bce64e8aa0a4e4dd5a50ff30bf10fc3e2491243
|
File details
Details for the file bbo_calibcamlib-0.3.14-py2.py3-none-any.whl.
File metadata
- Download URL: bbo_calibcamlib-0.3.14-py2.py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a0b4dcd2ebc60f817875614f8b0826d1fdd339061e185ef8a7cc6a62c1dfb7
|
|
| MD5 |
a7eed0b7bfe310f88d90a5d06b1d2464
|
|
| BLAKE2b-256 |
6db2a0c40d97d25930442ad17659ab6feac2eb38071f7134f23d352c38f72639
|