Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bbo-calibcamlib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbo-calibcamlib

Library to work with calibration from bbo-calibcam

  • 0.3.12
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc