Skip to main content

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.

Metadata

Release files for bbo-calibcamlib 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bbo-calibcamlib 0.5.2
File Size Uploaded Provenance
bbo_calibcamlib-0.5.2.tar.gz 29.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bbo-calibcamlib 0.5.2
File Interpreter ABI Platform
bbo_calibcamlib-0.5.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 60.8 kB

Release files / bbo_calibcamlib-0.5.2.tar.gz

Download URL bbo_calibcamlib-0.5.2.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81151ebe4288c393babd5b88d1529359750a414407bac8c0341ec4062577895b
BLAKE2b-256 checksum
How to use checksums
f90aaaa96f0ea7d8431e61ceb455ca63ea800f9bc0f51a0f8fe9e7b3c8e2d4d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.2

Release files / bbo_calibcamlib-0.5.2-py2.py3-none-any.whl

Download URL bbo_calibcamlib-0.5.2-py2.py3-none-any.whl
Size 31.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
739ea6a3f4a07976c2fa7e96e46e7f208323ecde740d13af4623a9c5e571c546
BLAKE2b-256 checksum
How to use checksums
e496e7af6f8ea1493304e7d5abf463dd88a3f898915f5e507e407a86515c4edd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.2

Security for bbo-calibcamlib 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page