Skip to main content

CameraKit

CameraKit

CameraKit is a CLI-first Python package for camera calibration and synchronized capture.

Current package version: v2.0.1

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.

Metadata

Release files for camerakit 2.0.1

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

Source distribution (sdist)

Source distribution for camerakit 2.0.1
File Size Uploaded
camerakit-2.0.1.tar.gz 40.6 kB Details

Built distribution (wheel)

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

Total release size: 86.6 kB

Release files / camerakit-2.0.1.tar.gz

Download URL camerakit-2.0.1.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ad106018a8945a2010477405653c1a5dee10defcaea3963feb2f8ec025cf21cc
BLAKE2b-256 checksum
How to use checksums
32d81293af08f115c2cf4f2a510a7b2b7135679c2a5a4113fd6861d5a7426d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / camerakit-2.0.1-py3-none-any.whl

Download URL camerakit-2.0.1-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5baf1b2cd9235683731d9c49537a3fb892347026c51241a677b5e72c00c428fb
BLAKE2b-256 checksum
How to use checksums
9d7a4d33b6f032c6d254948857c652f1e6a931b1c8dff8757420296f7df23a32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

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