Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing OpenCV coordinates to OpenGL

Tags:

c

opencv

opengl

I have written two sets of code. 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?

like image 766
sagar Avatar asked Nov 20 '25 18:11

sagar


1 Answers

You might try something along these lines.

They even have a SVN repo.

like image 177
genpfault Avatar answered Nov 23 '25 09:11

genpfault



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!