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.11.tar.gz
(20.9 kB
view hashes)
Built Distribution
Close
Hashes for bbo_calibcamlib-0.3.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e04101ff57d44619b1a2a05f4d0ac50b4363148d6e2d6d77d5d089e6590d9286 |
|
MD5 | acc956b1f816ef57824a0eaea61f7dff |
|
BLAKE2b-256 | 64be99a5c73b342584a610244444813af8391416c058af28fa0a749e894a012a |