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.
Metadata
Release files for deltacamera 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deltacamera-0.9.0.tar.gz | 167.1 kB | Without provenance | Details for deltacamera-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deltacamera-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for deltacamera-0.9.0-py3-none-any.whl |
Total release size: 270.8 kB
Release files / deltacamera-0.9.0.tar.gz
| Download URL | deltacamera-0.9.0.tar.gz |
|---|---|
| Size | 167.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2389dd07917d6a853d7477da913588def54b2c2f5b3c0123e9597d20fe288d7
|
|
BLAKE2b-256 checksum How to use checksums |
afff710a3dafc6f8034923b129aed5d52f396a53ecee5c51b1561f92cd3a2518
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / deltacamera-0.9.0-py3-none-any.whl
| Download URL | deltacamera-0.9.0-py3-none-any.whl |
|---|---|
| Size | 103.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f84e851e13edcd03fe14b6af7ac0e0693e9b0bc2c22cf37badcd7a98c18fef8b
|
|
BLAKE2b-256 checksum How to use checksums |
748181ec6caebef5d76c43009c3abd3b96ef71b7ba0cf2d740f92ec77d9f55f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for deltacamera 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.