An augmented reality tabletop using OpenGL and OpenCV.
- OpenCV code for detecting squares is based on an OpenCV tutorial.
- I added the ability to filter colors and detect the orientation and scale of the square.
- OpenGL code is a combination of multiple different tutorials.
- I added the ability to render multiple different objects in the same frame (surprisingly not many tutorials cover this.)
A build for rendering frames from a folder of sample images is currently available under the GitHub releases section.
- OpenGL (3.3 or above)
This project uses CMake for building. It works using Visual Studio 2015 on my Windows 10 laptop. Currently the process of setting up dependencies is a bit involved. It is primarily based on this tutorial for OpenGL, glfw, glew, and SOIL. In addition I built OpenCV from source (however, its probably possible to just use the installer.). After that, the any .lib files being used should be copied to
$DEP_ROOT_DIR/lib, then any headers should be put in
$DEP_ROOT_DIR/include, and all the OpenCV .dll's should be put in
Once the dependencies are initially setup, all that is left is to configure and generate the build system from CMake, and build the ardnd target. If using static images (the default), then the samples target should also be built.