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

camera-intrinsics

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camera-intrinsics

A package for applying image transformations to the camera intrinsics.

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

Camera Intrinsics

A small package that supports applying image transformations, e.g. cropping or resizing, to the camera intrinsics.

This package is under development and not well tested nor stable.

Installation

pip install camera-intrinsics

Intrinsics

Camera intrinsics are python dicts with the keys height, width, fx, fy, cx, cy, options.

Example

import camera_intrinsics as cam

intr = cam.intrinsics(width=128, height=96, fx=128.0, fy=128.0, cx=63.5, cy=47.5)  # Make sure to be clear about half_pixel_centers! Read the doc below.
print(intr)
>>> {'height': 96, 'width': 128, 'fx': 128.0, 'fy': 128.0, 'cx': 63.5, 'cy': 47.5, 'options': ''}

Options

The options string is the join of the single options with a semincolon ,. The available options are listed below.

Pixel Coordinate Convention

There are mainly two conventions for the pixel coordinates. The preferred one within this package uses (0,0) as the coordinate for the top-left pixel and its options string is "". The other convention uses (.5, .5) as the coordinate for the top-left pixel and its options string is "half_pixel_centers" . Be careful to select the right convention when creating the intrinsics. Here is a list of toolboxes and their conventions

  • No half_pixel_centers: DSO (link), MATLAb Calibration Toolbox (link), Berkeley Automation (link)
  • half_pixel_centers: COLMAP (link), FastMVSNet (link)

Methods

Currently the following methods are supported:

  • intrinsics: Make intrinsics
  • crop: Crop intrinsics
  • resize: Resize intrinsics

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