Project-01 for the course ENPM673: Perception for Autonomous Robots (Spring 2022).
- Tag Detection Video
- Superimposing an Image on the Tag Video
- Placing a Virtual Cube onto the Tag Video
├── 1tagvideo.mp4 # Main video file for Q2.
├── tag_single_frame.jpg # Single frame image for Q1(a).
├── tag_ref_image.png # Reference tag image for Q1(b).
└── testudo.png # Testudo template image for Q2(a).
├── ARTag_detection.py # For detecting the AR tag from tag_single_frame.jpg using FFT.
├── ARTag_decode_reference.py # For decoding the AR tag info from tag_ref_image.png.
├── ARTag_decode.py # For decoding the AR tag info from a single frame of 1tagvideo.mp4.
├── ARTag_testudo_video.py # For superimposing testudo.png on the AR tag in 1tagvideo.mp4.
└── ARTag_cube_video.py # For constructing a virtual cube on the AR tag in 1tagvideo.mp4.
- cv2
- numpy
- scipy
- imutils
- matplotlib
Ensure all the media files are in the same directory as that of the Python scripts.
-
For detecting the tag using FFT:
`python3 ARTag_detection.py`
-
For decoding the reference image:
`python3 ARTag_decode_reference.py`
-
For decoding a single frame from the video:
`python3 ARTag_decode.py`
-
For superimposing the Testudo image on the tag:
`python3 ARTag_testudo_video.py`
-
For constructing the cube on the tag:
`python3 ARTag_cube_video.py`