Skip to main content

DeltaCamera

This is a computer vision / image processing library for changing camera calibration models, coordinate transformations, and image warping/undistortion to account for camera modifications and lens distortion.

Main use cases

  • Convert coordinates between world, camera and image space, handing lens distortion models according to the 14-parameter extended Brown–Conrady and the 4-parameter Kannala–Brandt fisheye models.
  • Reproject image points and entire images between different camera calibration settings (e.g., rotate the camera or change lens distortion).
  • Modify cameras with intuitive methods such as camera.zoomed, camera.rotated, camera.image_resized, camera.turned_towards, etc.

Benefits

  • Speed: The critical functions are accelerated with Numba and intermediate computations are cached for high performance.
  • Accuracy: We use a more accurate inversion of Brown–Conrady compared to OpenCV. OpenCV uses only fixed-point iteration, we use Newton's method in addition to that.
  • Tracking of pixel validity: When warping images, we keep track of which pixels in the output image are valid (i.e., map to valid pixels in the input image), taking into account also the valid region of the lens distortion model (outside of which distortion folds back on itself, and would cause artifacts if not detected). The valid region can be obtained as a Shapely polygon, an RLEMaskLib mask or as NaNs in the return values. This feature is missing from OpenCV.
  • Linear color interpolation: When warping images, we use linear interpolation in linear color space (gamma corrected), which avoids artifacts when warping images with strong contrast.
  • Anti-aliasing: When warping images, we use supersampling to avoid aliasing artifacts when downsampling parts of the image.

Installation

pip install deltacamera

It is recommended to then run the Numba precompilation step (takes around 1–2 minutes). This will make image warping and coordinate transformations fast already on first use.

python -m deltacamera.precompile

Documentation

Full documentation is available at deltacamera.readthedocs.io.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltacamera-0.7.1.tar.gz (148.1 kB view details)

Uploaded Source

Built Distribution

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

deltacamera-0.7.1-py3-none-any.whl (87.3 kB view details)

Uploaded Python 3

File details

Details for the file deltacamera-0.7.1.tar.gz.

File metadata

  • Download URL: deltacamera-0.7.1.tar.gz
  • Upload date:
  • Size: 148.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deltacamera-0.7.1.tar.gz
Algorithm Hash digest
SHA256 19fd921dec8f04edb5ae966bf3c83eae4951cdab3507353d3aa5e5150df02f81
MD5 3b79159dc152da13f0d3b84d13f7dc58
BLAKE2b-256 572051042ac853a806010f630b0fe1762919b7ec3478c4acc0226d21d0c014f3

See more details on using hashes here.

File details

Details for the file deltacamera-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: deltacamera-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 87.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deltacamera-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 183ee29cc7ab9be4a29a3ca5717df91b0aa26762d49256676e348c9a6a4527bf
MD5 053e52368892f3f3d0ffa001d0597a7c
BLAKE2b-256 399caf21bddc4748e6e98dcd0876af992118bf52eac202a9db8f18162eab5f57

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.3

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