A wrapper around the main functionalities offered by OpenCV for camera calibration for cleaner and maintainable calibration routines.
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file camcalib-1.0.5.tar.gz.
File metadata
- Download URL: camcalib-1.0.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e855cfd6434af9c9bb86fac3ac451c80e2ef9b82e7790b7c372b22c64fb3b014
|
|
| MD5 |
48d3dad02cdf21b9c3e4efaa89d83870
|
|
| BLAKE2b-256 |
135ca1c9da7658882770182053c999c62002fc720bef9ae678ad3786e4fe5ee8
|
File details
Details for the file camcalib-1.0.5-py3-none-any.whl.
File metadata
- Download URL: camcalib-1.0.5-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3cd4791d5b0738ea4af9e1cf5e9fd7f8dbf798c82c7e29953c56633e814fd9d
|
|
| MD5 |
4e8c82b7b22be9004b49601dad88335c
|
|
| BLAKE2b-256 |
8b1513de475c9c4be64ec2e0a252d01a94a9e24ac94146d2e68f3792215d901d
|