A fiducial marker system powered by OpenCV - Supports ArUco and April
Project description
Zoloto
A fiducial marker system powered by OpenCV - Supports ArUco and April
Installation
pip install zoloto
OpenCV
OpenCV should be installed manually, ideally through your system package manager. This makes it easier to customize your OpenCV installation for your system, or use the optimal settings for your OS / hardware. Note that you may need to install opencv-contrib
as well as opencv
.
If you'd rather have one installed automatically, install the extra opencv
:
pip install zoloto[opencv]
Note that this version lacks hardware acceleration. See the README for more details.
For storage-constrained environments, there's also opencv-contrib-python-headless
, which should be installed manually.
Examples
from pathlib import Path
from zoloto import MarkerType
from zoloto.cameras import ImageFileCamera
with ImageFileCamera(Path("my-image.png"), marker_type=MarkerType.ARUCO_6X6) as camera:
camera.save_frame("my-annotated-image.png", annotate=True)
print("I saved an image with {} markers in.".format(len(camera.get_visible_markers())))
Zoloto ships with a CLI (aptly named zoloto
), which contains some helpful utils for working with Zoloto and fiducial markers.
Development setup
./scripts/setup.sh
will create a virtual environment, and install all the required development dependencies into it.
Note that this will not install a version of OpenCV for you. For that, run ./scripts/setup.sh opencv
.
There are some additional useful scripts to assist:
./scripts/test.sh
: Run the unit tests and linters./scripts/fix.sh
: Automatically fix issues fromblack
andisort
./scripts/benchmark.sh
: Run benchmarks (these can take a couple minutes depending on your hardware)
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
Built Distribution
File details
Details for the file zoloto-0.7.0.tar.gz
.
File metadata
- Download URL: zoloto-0.7.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2f56ec10cc846c7431b54da067e389e457afc0f5ca17f1ebef127457ffd1037 |
|
MD5 | cf05e8eeb831f10756f61c20b700c70d |
|
BLAKE2b-256 | ffa8dd786d679f28f842d089d315c3a9ab4acef2223a132116984ef2041ee286 |
File details
Details for the file zoloto-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: zoloto-0.7.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4719f7319caf3465da2b8380424b44f4a0be633030a60e2602741b92700dd70b |
|
MD5 | 2a3463d377c9f8920e28f6d3660df505 |
|
BLAKE2b-256 | b5b3e632941bdb39132a39ccb78fd20e752ad39444fd1d157e36a3def2421eb6 |