This code repository is for rendering OBJ mesh to OpenCV window with background image supporting.
- OS Platform: Windows, Ubuntu
- OpenCV: The version should be below 3.0, because the 2.X APIs are different from 3.X somehow.
- OpenGL or FreeGLUT: The best choise is FreeGLUT, cause it supports indepent window event manipulation.
-
Clone the GLRenderer repository
git clone https://github.com/imbinwang/GLRenderer.git -
We'll call the directory that you cloned GLRenderer into GLRenderer_ROOT. You should print the marker file in
GLRenderer_ROOT/dataand calibrate your camera in advance. -
Modify the maker size and camera paramters in the file
GLRenderer_ROOT/main.cpp -
Run.