|
hace 2 años | |
---|---|---|
.. | ||
README.md | hace 2 años | |
augmented-reality-example.jpg | hace 5 años | |
augmented_reality_with_aruco.cpp | hace 5 años | |
augmented_reality_with_aruco.py | hace 5 años | |
generate_aruco_markers.cpp | hace 5 años | |
generate_aruco_markers.py | hace 5 años | |
new_scenery.jpg | hace 5 años | |
test.jpg | hace 5 años | |
test.mp4 | hace 5 años |
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.