Skip to main content

Camera Calibration w/ Python + OpenCV

A wrapper around the main functionalities offered by OpenCV for camera calibration for cleaner and maintainable calibration routines.

Dependencies

numpy (1.17.4 preferred)
opencv (3.4.2 preferred)
tqdm

##Installation

pip install camcalib

Instructions

Import

from cam_calib import camera_calibrate

Single Camera Calibration

Instantiate an object of type camera_calibrate by passing in relevant arguments to the constructor. (Example below uses some place holder arguments)

camera_1 = camera_calibrate(img_path = './path', dims = (w, h), img_size = (w_i, h_i),...)

Use the calib method on the object for single camera calibration

params = camera_1.calib()

Stereo Camera Calibration

Instantiate two objects of the type camera_calibrate by passing in relevant arguments to the constructor. (Example below uses some place holder arguments)

camera_1 = camera_calibrate(img_path = '../left_path', dims = (w, h), img_size = (w_i, h_i),...)
camera_2 = camera_calibrate(img_path = '../right_path', dims = (w, h), img_size = (w_i, h_i),...)

Call the class method stereo_calib method on the class camera_calibrate by passing the two objects as arguments.

stereo_params = camera_calibrate.stereo_calib(camera_1, camera_2) 

Metadata

Release files for camcalib 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for camcalib 1.0.5
File Size Uploaded
camcalib-1.0.5.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for camcalib 1.0.5
File Interpreter ABI Platform
camcalib-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / camcalib-1.0.5.tar.gz

Download URL camcalib-1.0.5.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e855cfd6434af9c9bb86fac3ac451c80e2ef9b82e7790b7c372b22c64fb3b014
BLAKE2b-256 checksum
How to use checksums
135ca1c9da7658882770182053c999c62002fc720bef9ae678ad3786e4fe5ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release files / camcalib-1.0.5-py3-none-any.whl

Download URL camcalib-1.0.5-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3cd4791d5b0738ea4af9e1cf5e9fd7f8dbf798c82c7e29953c56633e814fd9d
BLAKE2b-256 checksum
How to use checksums
8b1513de475c9c4be64ec2e0a252d01a94a9e24ac94146d2e68f3792215d901d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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