Skip to main content

No project description provided

Project description

calib-targets Python bindings

This repo ships Python bindings for the high-level calib-targets facade crate.

Build & develop

pip install maturin
maturin develop
python -c "import calib_targets; print(calib_targets)"

API

The module name is calib_targets and it exposes three functions:

  • detect_chessboard(image, *, chess_cfg=None, params=None) -> dict | None
  • detect_charuco(image, *, board, chess_cfg=None, params=None) -> dict
  • detect_marker_board(image, *, chess_cfg=None, params=None) -> dict | None

Inputs and config:

  • image must be a 2D numpy.ndarray with dtype=uint8 (grayscale).
  • chess_cfg accepts None, a dict of overrides, or a ChessConfig instance.
  • params accepts None, a dict of overrides, or typed params classes.
  • board is a ChArUco board spec dict: rows, cols, cell_size, marker_size_rel, dictionary, marker_layout.

Notes:

  • Typed config classes exposed by the module include ChessConfig, ChessCornerParams, CoarseToFineParams, PyramidParams, ChessboardParams, OrientationClusteringParams, GridGraphParams, CharucoDetectorParams, ScanDecodeConfig, MarkerBoardParams, CircleScoreParams, and CircleMatchParams.
  • Dict overrides can be partial; unknown keys raise ValueError listing valid keys.
  • target_position is populated only when the board layout includes a valid cell_size and alignment succeeds. For marker boards, set params["layout"]["cell_size"] to your square size.

Examples

The example scripts load an image with Pillow (install it once):

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

calib_targets-0.2.1-cp310-abi3-win_amd64.whl (518.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

calib_targets-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

calib_targets-0.2.1-cp310-abi3-macosx_11_0_arm64.whl (653.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for calib_targets-0.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ae0c39ad26fd41e2b8782f0419977f2a61a270af6adc59c0440b45130011851d
MD5 b19520ae89578eb88cdaaf156788ef80
BLAKE2b-256 1d40be4546643ae8de5164dc72057d7572d5755a6d97fc0dc8ac1ef6b44325db

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.1-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.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for calib_targets-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 483c3351153d74debd77d5909441e65736916fed2fc909f7bb7403a4b2ff3405
MD5 7cb5b24a945af3db4381dc5bf18c01ae
BLAKE2b-256 6c6c56b9da8d1e06903e7137b38472f17f04551ef8f93004c543f6ba78ca8cad

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.1-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.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for calib_targets-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50890763959cbca1335aaa725fa6b28fb49fd6ae0e36cee75bbc6eb2f60328be
MD5 e8fc2b0e01793ef2c66e1c1857b6732f
BLAKE2b-256 3c6ea191fd39a2e7018f6a0a4232289929d91f422aeeeb5c080676ca9eea17e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for calib_targets-0.2.1-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