Skip to main content

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

Release files for camera-intrinsics 0.0.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 camera-intrinsics 0.0.2
File Size Uploaded
camera_intrinsics-0.0.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for camera-intrinsics 0.0.2
File Interpreter ABI Platform
camera_intrinsics-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / camera_intrinsics-0.0.2.tar.gz

Download URL camera_intrinsics-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc6cb83d4fc8170c582b31551f024447e9339ea50c3d47b90b90a070014806c
BLAKE2b-256 checksum
How to use checksums
dfd29830137c4c2c95f5ebc59854b7ce4b10c22069460f005fdb7f85a48e5657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / camera_intrinsics-0.0.2-py3-none-any.whl

Download URL camera_intrinsics-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac11cf7ecba7bb7e527a6dc4357df4290d5ad37324c8ecb2292f47ad3eee4d92
BLAKE2b-256 checksum
How to use checksums
dc522ede5e7bdcb804f13bbbd6ec4f63c1dea5dffecdd6854dba74b6a96651c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release 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