Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jig/aruco
aruco python raspberry
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jig/aruco
- Owner: jig
- Created: 2024-08-17T18:39:08.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T11:23:05.000Z (3 months ago)
- Last Synced: 2024-08-20T21:53:43.846Z (3 months ago)
- Topics: aruco, python, raspberry
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raspberry + Aruco + Python
This code sample prints a single JSON array to stdout with the coordinates of several Aruco markers that appear on the field of view of the camera.
Tested with:
- Raspberry Pi 5
- Raspberry Pi Camera HQ
- Raspberry Pi OS "Bookworm" 64 bitBased on code from:
- [How to Detect ArUco Markers Using OpenCV and Python](https://automaticaddison.com/how-to-detect-aruco-markers-using-opencv-and-python/) by Automatic Addison
- [The Picamera2 Library; A libcamera-based Python library for Rasperry Pi cameras](https://datasheets.raspberrypi.com/camera/picamera2-manual.pdf) by Raspberry Pi Foundation# Install dependencies
First you need a virtual environment. Several ways to do it, I use a user wide environment for this case:
```bash
python -m venv ~/.env
python -m venv --system-site-packages ~/.env
source ~/.env/bin/activate
```Install dependencies for this program now:
```bash
pip3 install opencv-python
pip3 install picamera2
```