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.
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.5.0.tar.gz
(29.0 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.5.0.tar.gz.
File metadata
- Download URL: bbo_calibcamlib-0.5.0.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddc57083d03403f577098928e4d001e5260c5ddebe045bf9ddf1619d6dff3487
|
|
| MD5 |
82e79467b8bfde66977494c95f03b884
|
|
| BLAKE2b-256 |
950252c7dce212b31863a3acf634acc2ab55cc182e86bf1fa144e3f47b4029cf
|
File details
Details for the file bbo_calibcamlib-0.5.0-py2.py3-none-any.whl.
File metadata
- Download URL: bbo_calibcamlib-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf9f37ec8a9e7aa2de8d11b4fdc1dafb83bca7ff6e8236d4d4ba13fe7196c1d
|
|
| MD5 |
a3f5bb0f13a3e2e2e813135a1662528a
|
|
| BLAKE2b-256 |
4112be61aac280111786e4305f861a32b8f53bba208068cd3360bb5bd27ef384
|