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.

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.2.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbo_calibcamlib-0.5.2-py2.py3-none-any.whl (31.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bbo_calibcamlib-0.5.2.tar.gz.

File metadata

  • Download URL: bbo_calibcamlib-0.5.2.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for bbo_calibcamlib-0.5.2.tar.gz
Algorithm Hash digest
SHA256 81151ebe4288c393babd5b88d1529359750a414407bac8c0341ec4062577895b
MD5 90f23cec3cc062b8277eef57829d046d
BLAKE2b-256 f90aaaa96f0ea7d8431e61ceb455ca63ea800f9bc0f51a0f8fe9e7b3c8e2d4d0

See more details on using hashes here.

File details

Details for the file bbo_calibcamlib-0.5.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bbo_calibcamlib-0.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 739ea6a3f4a07976c2fa7e96e46e7f208323ecde740d13af4623a9c5e571c546
MD5 bc7c3692d87cf51186ee221cc6e048ea
BLAKE2b-256 e496e7af6f8ea1493304e7d5abf463dd88a3f898915f5e507e407a86515c4edd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.17

2 files

0.3.16

2 files

0.3.15

2 files

0.3.14

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.7

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.1

2 files

0.2.0

2 files

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