Skip to main content

CLI and Python toolkit for camera calibration and synchronized capture

Project description

CameraKit

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_px
    • extrinsics_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


Download files

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

Source Distribution

camerakit-2.0.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

camerakit-2.0.0-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

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

Hashes for camerakit-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e17570a3d6755231057a1cd148259ded13077ab77909614f8d6ecfa5fae224ac
MD5 8031fb4c88dfd88d61f894fe1b1d7aee
BLAKE2b-256 6c7df3f8f862e7e442b6b19dc7dd2804e8699c9418cdce4267772c70a217b7f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for camerakit-2.0.0.tar.gz:

Publisher: publish.yml on saifkhichi96/camerakit

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

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

Hashes for camerakit-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49b3ba73d79a15ad9496dfa1efd65231674e6b0273ad7ef15382ac99a437213a
MD5 928b7c180a2b99ac6fb98f1bbecfc64f
BLAKE2b-256 132bf6ebdc4028ddf64060341f3b20245a27be4757187de50a37803588b1e906

See more details on using hashes here.

Provenance

The following attestation bundles were made for camerakit-2.0.0-py3-none-any.whl:

Publisher: publish.yml on saifkhichi96/camerakit

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