CLI and Python toolkit for camera calibration and synchronized capture
Project description
CameraKit
CameraKit is a CLI-first Python package for camera calibration and synchronized capture.
Current package version: v2.0.0
Stable Features
- Unified CLI with subcommands:
devices,init,calibrate,capture,report - Camera discovery with supported resolution/FPS/codec probing
- Checkerboard-based calibration (intrinsics + optional extrinsics)
- Optional fisheye intrinsics/extrinsics path in calibration workflow
- Calibration TOML outputs with separate per-camera errors:
intrinsics_error_pxextrinsics_error_px
- Synchronized software capture with per-trial recordings
- Calibration summary reporting via CLI
Installation
pip install camerakit
For capture workflows, use GUI-enabled OpenCV (opencv-python).
opencv-python-headless intentionally disables the interactive capture command.
Quickstart
# 1) Create a project
camerakit init --path /path/to/project --cameras 2
# 2) List devices
camerakit devices --max-cameras 6
# 3) Run calibration
camerakit calibrate --config /path/to/project
# 4) Summarize calibration output
camerakit report --input /path/to/project/calibration/Calib_board_outer.toml
# 5) Record synchronized videos
camerakit capture --data-dir data --max-cameras 6
Project layout example:
project/
Config.toml
calibration/
intrinsics/
cam_00/ intrinsics.mp4
cam_01/ intrinsics.mp4
extrinsics/
cam_00/ extrinsics.png
cam_01/ extrinsics.png
Python API
from camerakit.calibration import run_calibration
from camerakit.utils import CameraEnumerator
run_calibration("/path/to/project")
cameras = CameraEnumerator(max_cameras=6).list()
Documentation
Detailed Sphinx docs are in docs/. Build locally with:
pip install -r docs/requirements.txt
make -C docs html
Open docs/_build/html/index.html.
Contributing
See CONTRIBUTING.md for architecture notes, logging conventions, documentation workflow, and roadmap priorities.
Release Notes
See RELEASE_NOTES.md.
Third-Party Notices
Some portions of this project include code derived from third-party sources under their original licenses. See:
License
CameraKit is licensed under the MIT License. See LICENSE, plus third-party notices and licenses listed above.
MIT License
Copyright (c) 2026 CameraKit Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
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 camerakit-2.0.0.tar.gz.
File metadata
- Download URL: camerakit-2.0.0.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17570a3d6755231057a1cd148259ded13077ab77909614f8d6ecfa5fae224ac
|
|
| MD5 |
8031fb4c88dfd88d61f894fe1b1d7aee
|
|
| BLAKE2b-256 |
6c7df3f8f862e7e442b6b19dc7dd2804e8699c9418cdce4267772c70a217b7f2
|
Provenance
The following attestation bundles were made for camerakit-2.0.0.tar.gz:
Publisher:
publish.yml on saifkhichi96/camerakit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
camerakit-2.0.0.tar.gz -
Subject digest:
e17570a3d6755231057a1cd148259ded13077ab77909614f8d6ecfa5fae224ac - Sigstore transparency entry: 1038031941
- Sigstore integration time:
-
Permalink:
saifkhichi96/camerakit@722ee753281d52e1c743de3652a44f6d92c732d4 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/saifkhichi96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@722ee753281d52e1c743de3652a44f6d92c732d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file camerakit-2.0.0-py3-none-any.whl.
File metadata
- Download URL: camerakit-2.0.0-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b3ba73d79a15ad9496dfa1efd65231674e6b0273ad7ef15382ac99a437213a
|
|
| MD5 |
928b7c180a2b99ac6fb98f1bbecfc64f
|
|
| BLAKE2b-256 |
132bf6ebdc4028ddf64060341f3b20245a27be4757187de50a37803588b1e906
|
Provenance
The following attestation bundles were made for camerakit-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on saifkhichi96/camerakit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
camerakit-2.0.0-py3-none-any.whl -
Subject digest:
49b3ba73d79a15ad9496dfa1efd65231674e6b0273ad7ef15382ac99a437213a - Sigstore transparency entry: 1038032002
- Sigstore integration time:
-
Permalink:
saifkhichi96/camerakit@722ee753281d52e1c743de3652a44f6d92c732d4 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/saifkhichi96
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@722ee753281d52e1c743de3652a44f6d92c732d4 -
Trigger Event:
release
-
Statement type: