Git Product home page Git Product logo

ar-tag-virtual-cube's Introduction

Superimposing a Virtual Cube on an AR Tag

Project-01 for the course ENPM673: Perception for Autonomous Robots (Spring 2022).

AR Tag Detection

Flowchart

Edge Detection using FFT

Extracted Corners and Edges

AR Tag Decoding

Flowchart

Implementation

Decoding Tag ID

AR Tag Tracking

Flowchart for superimposing an image on Tag

Superimposed Testudo image on Tag

Flowchart for placing a virtual cube onto Tag

Placed virtual cube on Tag

Media Files & Codes

├── 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.

Dependencies

  • cv2
  • numpy
  • scipy
  • imutils
  • matplotlib

Running the Codes

Ensure all the media files are in the same directory as that of the Python scripts.

  1. For detecting the tag using FFT:

     	`python3 ARTag_detection.py`
    
  2. For decoding the reference image:

     	`python3 ARTag_decode_reference.py`
    
  3. For decoding a single frame from the video:

    	`python3 ARTag_decode.py`
    
  4. For superimposing the Testudo image on the tag:

      	`python3 ARTag_testudo_video.py`
    
  5. For constructing the cube on the tag:

      	`python3 ARTag_cube_video.py`
    

ar-tag-virtual-cube's People

Contributors

adarshmalapaka avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.