Skip to main content

lensboy for camera calibrations

Project description

lensboy

lensboy

Camera calibration for vision engineers. Extremely simple to use, and maximally powerful.

Supports OpenCV camera models and spline-based distortion models for lenses that OpenCV can't handle.



Why lensboy

Even for standard OpenCV models, lensboy gives you better calibrations than raw cv2.calibrateCamera:

  • Automatic outlier filtering removes bad detections
  • Target warp estimation compensates for non-flat calibration boards
  • Analysis tools to verify your calibration is actually good

For wide-angle lenses where OpenCV's polynomial distortion model isn't enough, lensboy offers spline-based distortion models that can capture arbitrary distortion patterns. This approach is inspired by mrcal, but lensboy is designed to be easier to use and trivial to install.

Install

For calibration time, includes analysis and plotting tools:

pip install lensboy[analysis]

For loading and using the camera models:

pip install lensboy

Getting started

See the quickstart notebook for a full walkthrough covering both OpenCV and spline models.

Spline models

When OpenCV residuals show systematic patterns at the edges, switch to a spline model. These use B-spline grids instead of polynomial coefficients, and can capture arbitrary distortion patterns. The calibrated spline model can be converted to a pinhole model with undistortion maps for use in your application.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

lensboy-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

lensboy-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (849.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lensboy-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

lensboy-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (849.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lensboy-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

lensboy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (848.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file lensboy-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd93eda1d33e8d4a14ead61c83ceed4fa387d0f5abfcc3b87eaa57ed2c67b8c3
MD5 b140cbcaba54851017d286ed7a14d707
BLAKE2b-256 84476e35de3927242dfb0c8b79bb8960f089c9aecef15fc3c86c83ad10e5834f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lensboy-1.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ca99f7fd45bb5235c54790cc0a615353984ec34f68f61f1017734684e3200fa
MD5 c8e049a79c90ed156ec69dbc0cb862e3
BLAKE2b-256 33a6d19342c02e88a08600829563b4de3a069a8b8e4e747f988851c043c4f016

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lensboy-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d166c7c2ccf5b6185c3a0f21cc7c8c4ab4ccb798c42aa17e307407e7762c0da2
MD5 cdcd67e898334916f472d8230ce50fed
BLAKE2b-256 e5bfa6fc57898a2c56bdf00c948ccbfdbe00faf05b013a669afb9d72de2e54cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lensboy-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d20743500e35a5b6ea3adb847847ce2894bca0bb1d70392bb0c54ab0ac008a67
MD5 62dd1070cbff0080e11ab8752f39f81b
BLAKE2b-256 9587259ab9fab3689b1bef98729a5da0a58b6b7da4f8f9bc3acb1aca806de36f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lensboy-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f361c8a80a0d924ad3f384872095c5f20bc45fe10923a63e6f0526e9e1de29f4
MD5 afb94a58bac03e7f67ce9848df50fb12
BLAKE2b-256 b2b56d8e08d83d12f8355af6cc44869ad0554778ff0ebec05c88a97e2f274d3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lensboy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lensboy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f6285a44854c1f62c6db48fb4e176d9a5b9d5cf5d9f13806b940654c5b96b63
MD5 b1c12f5f875e740c64ca87c5d91a406e
BLAKE2b-256 d71349a3d77b32f0cf23fee921c8d0b76b7f09eba4f0c70b54d6c14d28e0ff49

See more details on using hashes here.

Provenance

The following attestation bundles were made for lensboy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Robertleoj/lensboy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page