Skip to content

kavyadevd/ARTagDetection

Repository files navigation

AR Tag Detection

ARTAG

AprilTags are a type of fiducial marker. Fiducials, or more simply “markers,” are reference objects that are placed in the field of view of the camera when an image or video frame is captured. AprilTags are a specific type of fiducial marker, consisting of a black square with a white foreground that has been generated in a particular pattern

Filters in image processing are just what the name suggests, Filter. They are typically a mask array of the same size as the original image which when superimposed on the ordinal image, extracts only the attributes that we are interested in.

Executing the code

File structure

.
├── ARdetect.py                             # python code file for problem 1.a and 1.b
├── TestudoSuperimpose.py                   # python code file for problem 2.a
├── CubeAR.py                               # python code file for problem 2.b
├── Results                                 # contains output images
├── 1tagvideo.mp4                           # input video file
├── testudo.png                             # image to be superimposed
└── README.md

Commands:

  1. For executing AR TAG detect and decode ( Problem 1.a and 1.b.)
python3 Ardetect.py
  1. For executing image superimposition ( Problem 2.a )
python3 TestudoSuperimpose.py
  1. For executing solution to AR TAG detect and decode ( Problem 2.b )
python3 CubeAR.py

To close the output window at any time press esc

Results

After FFT Detect and Decode
AfterFFT Detected
Superimpose #3D cube Project
Superimposed Projection

Part 1 – Detection

AR Code detection:

Detecting the April Tag in any frame of Tag1 video (just one frame).

Part 2 – Tracking

Track the detected AR Tag and superimpose an image and then a 3D cube while maintaining the orientation

Terms:

  1. Thresholding - Segmentation techniques in computer vision to separate the foreground from the background of the image. Basically selecting value T, all pixel intensities less than T = 0, and all pixel values greater than T = 255

References:

  1. AprilTag with Python
  2. FFT Edge Detection
  3. Homography

About

Open CV AR Tag detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages