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 is a nested dict of overrides for the ChESS detector.
  • params are detector settings serialized from the Rust structs.
  • board is a ChArUco board spec dict: rows, cols, cell_size, marker_size_rel, dictionary, marker_layout.

Notes:

  • 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 Distribution

calib_targets-0.2.0.tar.gz (130.4 kB view details)

Uploaded Source

Built Distribution

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

calib_targets-0.2.0-cp310-abi3-macosx_11_0_arm64.whl (490.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: calib_targets-0.2.0.tar.gz
  • Upload date:
  • Size: 130.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for calib_targets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f59b8a6be78183ae4508a9165188815682e66ba914b1fc2d996ee37a0580001c
MD5 a46d602727d05ec26c3a3247caee137a
BLAKE2b-256 ab97f63686a615ca0e4646b3bba979d574bdecd23addb3e894334e3c176f4abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for calib_targets-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 946b9ba05b454aa5445f826d19a23f895bab47dba54605ee5eca3ad0754f288d
MD5 598ab28c36d52cced52b489e1024021a
BLAKE2b-256 94f1c690145817e533de78b05672610e3862929f3385ec0f3c4a0a72cf3e0912

See more details on using hashes here.

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