Skip to main content

No project description provided

Project description

calib-targets Python bindings

These bindings expose a native-feeling Python API backed by Rust (PyO3 + maturin).

Build & develop

pip install maturin
maturin develop
python -c "import calib_targets as ct; print(ct.detect_chessboard)"

Public API

Top-level detectors return typed dataclasses:

  • detect_chessboard(image, *, chess_cfg=None, params=None) -> ChessboardDetectionResult | None
  • detect_charuco(image, *, chess_cfg=None, params) -> CharucoDetectionResult
  • detect_marker_board(image, *, chess_cfg=None, params=None) -> MarkerBoardDetectionResult | None

Configuration is typed-only (dataclasses):

  • ChessConfig, ChessCornerParams, CoarseToFineParams, PyramidParams
  • ChessboardParams, OrientationClusteringParams, GridGraphParams
  • CharucoBoardSpec, CharucoDetectorParams, ScanDecodeConfig
  • MarkerCircleSpec, MarkerBoardLayout, CircleScoreParams, CircleMatchParams, MarkerBoardParams

Enums and literals:

  • TargetKind, CirclePolarity, MarkerLayout
  • DictionaryName (Literal) and DICTIONARY_NAMES

Inputs

  • image must be a 2D numpy.ndarray with dtype=uint8.
  • chess_cfg must be ChessConfig | None.
  • params must be typed params dataclasses (or None where allowed).
  • Dict/mapping inputs are intentionally rejected in the new API.

Results and compatibility

Result models are dataclasses with attribute access and editor navigation. Every config/result model provides:

  • to_dict()
  • from_dict(...)

This is the compatibility path for JSON pipelines and legacy dict-based code.

Migration guide

Old usage New usage
detect_chessboard(img, params={"min_corners": 16}) detect_chessboard(img, params=ChessboardParams(min_corners=16))
detect_charuco(..., params={"board": {...}}) detect_charuco(..., params=CharucoDetectorParams(board=CharucoBoardSpec(...)))
result["detection"]["corners"] result.detection.corners
N/A result.to_dict() / ResultType.from_dict(...)

Examples

pip install pillow
python examples/detect_chessboard.py path/to/image.png
python examples/detect_charuco.py path/to/image.png
python examples/detect_marker_board.py path/to/image.png

Implementation note

The compiled module is internal (calib_targets._core). Public API stability is guaranteed only for top-level calib_targets exports.

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

calib_targets-0.2.3.tar.gz (164.6 kB view details)

Uploaded Source

Built Distributions

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

calib_targets-0.2.3-cp310-abi3-win_amd64.whl (638.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

calib_targets-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

calib_targets-0.2.3-cp310-abi3-macosx_11_0_arm64.whl (779.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file calib_targets-0.2.3.tar.gz.

File metadata

  • Download URL: calib_targets-0.2.3.tar.gz
  • Upload date:
  • Size: 164.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for calib_targets-0.2.3.tar.gz
Algorithm Hash digest
SHA256 a7fb44a761dc325623586e771bbf8d6a9e1094285534ad74faeb9bcf9e23972e
MD5 fb75a833555474678b7c52f876d9296c
BLAKE2b-256 71011dd2b5a1402a4fcc7ff2925d7c211d1e95d782a07b918e57d04f474af8d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.3.tar.gz:

Publisher: release-pypi.yml on VitalyVorobyev/calib-targets-rs

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

File details

Details for the file calib_targets-0.2.3-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for calib_targets-0.2.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 aafbd79c5f3a3b95b164ee64d0f6540ed93d151b86618f57aab3158d537f032f
MD5 62b365cd8fdb21c9e663db20257161ce
BLAKE2b-256 53a4e967d11494127d8c8e5fbf07601da40817f70096f2ee49a0fb909b7280ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.3-cp310-abi3-win_amd64.whl:

Publisher: release-pypi.yml on VitalyVorobyev/calib-targets-rs

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

File details

Details for the file calib_targets-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for calib_targets-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0121f2f42800edd8b3bbcb0aa14208e74e05cc173ad04097b0abf6d886a0ae88
MD5 7c5ead838f092b94dd1caf2d8bc8679f
BLAKE2b-256 8101d2ba31022dd2610c0e59d1b5677f9832c9477ca701ba806674652ca91154

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-pypi.yml on VitalyVorobyev/calib-targets-rs

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

File details

Details for the file calib_targets-0.2.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for calib_targets-0.2.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7335bd0be7ded89d87f65a8a176e84214842662e4dffbf7a3d7fa667e3fa7edf
MD5 a316b5d68e0d173641e01641e78c452c
BLAKE2b-256 28176534fbb71c0c1934e6d85ca0db5ce3e25fb006f8710e641bda01cabf0022

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.3-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release-pypi.yml on VitalyVorobyev/calib-targets-rs

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