Skip to content

aminlashgari/ArUco-Chessboard-AR-Projection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Augmenting an arbitrary image on ArUco Markers and Chessboard Pattern

In this project, an image is warped onto a video using homography, based on either four ArUco markers or a chessboard pattern. Using the Lucas-Kanade method, key points within the chessboard and ArUco markers can be tracked across consecutive frames of the video. Finally, with the help of homography, the image is seamlessly augmented into the video feed.

How to run

  1. Clone the repo
git clone https://github.com/aminlashgari/ArUco-Chessboard-AR-Projection.git
  1. Check out the requirements.txt file and install the dependencies
pip install -r requirements.txt
  1. Run the main_AR.py file

Note: The marker_generation.py file can be used to generate ArUco markers. Alternatively, there are several online tools available for generating ArUco markers with arbitrary IDs and sizes, such as Oleg Kalachev Website.

Output Videos (Samples)

There are two examples: the first shows the output of a video with a chessboard pattern, while the second features non-identical ArUco markers. Near the end of the second video, the ArUco markers are being displaced; however, the key points are still successfully tracked, and the warped image remains stable and undistorted.

Chessboard AR Projection

Sample_1.mp4

ArUco AR Projection

Sample_2.mp4

Acknowledgment

  1. The video with the chessboard pattern was taken from IUST Computer Vision course.
  2. Some parts within the project were developed with help from PyImageSearch blogs on ArUco markers.

Releases

No releases published

Packages

 
 
 

Contributors

Languages