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.12.tar.gz
(20.9 kB
view details)
Built Distribution
File details
Details for the file bbo_calibcamlib-0.3.12.tar.gz
.
File metadata
- Download URL: bbo_calibcamlib-0.3.12.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b6189a75ddbab072354ce57053c064ec4fe484156c039666b4d702593cddd3 |
|
MD5 | 393d97b0b7cc1c9c7ed74b16c5aa2126 |
|
BLAKE2b-256 | f454ec0c65da20d34f8c9e36563f3438b01ac570d3fa736293be7cbdca76dba0 |
File details
Details for the file bbo_calibcamlib-0.3.12-py2.py3-none-any.whl
.
File metadata
- Download URL: bbo_calibcamlib-0.3.12-py2.py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccc01466bfff9ba99a59616688fa7a4d4994ff1109e607b18188db0fd7ee766f |
|
MD5 | e6af86090a8518d38896a99ba6c23052 |
|
BLAKE2b-256 | 4bbcc909807d97c97b386b348ec7228d5f25819bcba6828a0d15823ef97773e9 |