Ask Your Question

Any way to disable OPENGL with imshow?

asked 2018-05-26 16:03:03 -0600

shogun gravatar image

updated 2018-05-26 20:08:26 -0600

berak gravatar image

I am trying to use imshow without opengl support in python which has been pre-compiled with the libraries I am using and unfortunately I have not control over the computer I'm on, so opengl does not work.

I have tried using this before imshow: cv2.namedWindow("image", cv2.WINDOW_NORMAL)

With no effect, it always wants opengl.

Is there any way to display images without using opengl?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-05-26 19:30:11 -0600

berak gravatar image

you have to build your cv2 WITH_OPENGL=OFF (that's a cmake option).

it's impossible, and far too late, trying that from a python script.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-26 16:03:03 -0600

Seen: 655 times

Last updated: May 26 '18