A small syndicate actor that opens a webcam, detects any apriltags in frame, and publishes their location to a dataspace.
avon 866731c4fa add links | 1 maand geleden | |
---|---|---|
Makefile | 1 maand geleden | |
README.md | 1 maand geleden | |
apriltag-recognizer-demo.png | 1 maand geleden | |
apriltag.bin | 1 maand geleden | |
apriltag.prs | 1 maand geleden | |
apriltag.py | 1 maand geleden | |
listener.py | 1 maand geleden |
A small python program that uses syndicate-py to run an OpenCV + apriltag detector thread and asserts any apriltag detections to a Dataspace
A demo program for listening to the apriltag assertions is included in listener.py
To run the full demo, first start a Dataspace. I use the syndicate-server
. You can install this dataspace server impl using the following commands:
git clone https://git.syndicate-lang.org/syndicate-lang/syndicate-rs
cd syndicate-rs
cargo build --release
./target/release/syndicate-server -c dev-scripts/benchmark-config.pr
In a new terminal, run the recognizer NOTE: This will open your webcam if available!
python3 apriltag.py
Then in yet another terminal, run the listener:
python3 listener.py
Now when you put a tagStandard52h13
apriltag in webcam range, the recognizer should start asserting the tag's location. If you do not have a printer available, I found it's easy to simply navagate to the apriltag website on a mobile device, zoom in on the tagStandard25h13 tag on the homepage and hold your phone screen to the camera.