I have written two sets of code in C. One is using OpenCV (for marker detection) and another OpenGL (for creating a simple 3D box).
But I have no clue how to integrate those two. For example: Displaying the box on detected maker.
With the functions of OpenCV such as cvFindExtrinsicCameraParams2,cvRodrigues2 I have obtained the rotation vector and rotation matrix. But I cannot understand how I can pass these points to OpenGL so that it can draw a 3d shape on the detected marker?