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 | Nonedetect_charuco(image, *, board, chess_cfg=None, params=None) -> dictdetect_marker_board(image, *, chess_cfg=None, params=None) -> dict | None
Inputs and config:
imagemust be a 2Dnumpy.ndarraywithdtype=uint8(grayscale).chess_cfgis a nested dict of overrides for the ChESS detector.paramsare detector settings serialized from the Rust structs.boardis a ChArUco board spec dict:rows,cols,cell_size,marker_size_rel,dictionary,marker_layout.
Notes:
target_positionis populated only when the board layout includes a validcell_sizeand alignment succeeds. For marker boards, setparams["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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f59b8a6be78183ae4508a9165188815682e66ba914b1fc2d996ee37a0580001c
|
|
| MD5 |
a46d602727d05ec26c3a3247caee137a
|
|
| BLAKE2b-256 |
ab97f63686a615ca0e4646b3bba979d574bdecd23addb3e894334e3c176f4abf
|
File details
Details for the file calib_targets-0.2.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: calib_targets-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 490.0 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
946b9ba05b454aa5445f826d19a23f895bab47dba54605ee5eca3ad0754f288d
|
|
| MD5 |
598ab28c36d52cced52b489e1024021a
|
|
| BLAKE2b-256 |
94f1c690145817e533de78b05672610e3862929f3385ec0f3c4a0a72cf3e0912
|