Ask Your Question

Python OpenCV OGL Texture2D

asked 2020-03-13 03:58:20 -0500

Imran B gravatar image

Hello everyone, Based on, I am trying to load GPUMAT directly into OpenGL widget, but Texture2D method is not available in python as it seems.

import cv2 

Any suggestions will be really helpful.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-03-13 05:09:00 -0500

berak gravatar image

sadly, none of the structures / functions in cv::ogl are exposed to python or java, it's c++ only

edit flag offensive delete link more


Thanks for the response, can I write some C++ code to call that method and use this feature from my Python code?

Imran B gravatar imageImran B ( 2020-03-13 09:30:15 -0500 )edit

maybe you could try to wrap what you need into python , and, in the end, even conribute that ?

berak gravatar imageberak ( 2020-03-13 09:57:35 -0500 )edit

Thanks for the response berak

Imran B gravatar imageImran B ( 2020-03-16 02:32:40 -0500 )edit

Question Tools

1 follower


Asked: 2020-03-13 03:58:20 -0500

Seen: 198 times

Last updated: Mar 13 '20