|
il y a 2 ans | |
---|---|---|
.. | ||
README.md | il y a 2 ans | |
augmented-reality-example.jpg | il y a 5 ans | |
augmented_reality_with_aruco.cpp | il y a 5 ans | |
augmented_reality_with_aruco.py | il y a 5 ans | |
generate_aruco_markers.cpp | il y a 5 ans | |
generate_aruco_markers.py | il y a 5 ans | |
new_scenery.jpg | il y a 5 ans | |
test.jpg | il y a 5 ans | |
test.mp4 | il y a 5 ans |
This repository contains the code for Augmented Reality using ArUco Markers in OpenCV (C++ / Python) blog post.
We show how to use the AruCo markers in OpenCV using an augmented reality application to replace the image inside a picture frame on a wall to display new images or videos in the frame.
g++ -std=c++11 augmented_reality_with_aruco.cpp -o augmented_reality_with_aruco.out `pkg-config --cflags --libs opencv4`
Command line usage for running the code
Python
python3 augmented_reality_with_aruco.py --image=test.jpg
python3 augmented_reality_with_aruco.py --video=test.mp4
C++:
./augmented_reality_with_aruco.out --image=test.jpg
./augmented_reality_with_aruco.out --video=test.mp4
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.