Ask Your Question
0

How to integrate openCv with openGL

asked 2017-02-22 03:23:07 -0600

plaza gravatar image

updated 2017-02-22 04:14:47 -0600

berak gravatar image

All right guys, i come to a problem. I am using Python 2.7 and openCV.

What I am trying to do is to show rotating cube inside imshow using PyOpenGL. Does anyobody have a clue how to do that? Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-02-22 04:01:05 -0600

berak gravatar image

updated 2017-02-22 04:03:45 -0600

i'm afraid, you're just out of luck here.

even if your cv2.so was build with opengl support (check: cv2.getBuildInformation()), the resp. c++ functions to draw into a highgui window are not exposed to the python api.

you'll need a seperate lib, like PyOpengl or PyGame for this.

edit flag offensive delete link more

Comments

Thanks for response. I had installed PyOpengl but i still don't know how to draw with it on frame witch I take from my camera. Could you give me some refernce or example with drawing some 3D object usiing PyOpengl and openCv? Thanks in advance.

plaza gravatar imageplaza ( 2017-02-22 06:04:51 -0600 )edit

really, dear, just google "python opengl", and take 1st link ...

berak gravatar imageberak ( 2017-02-22 06:08:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-22 03:23:07 -0600

Seen: 584 times

Last updated: Feb 22 '17