Ask Your Question
0

Python OpenCV OGL Texture2D

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

Imran B gravatar image

Hello everyone, Based on https://stackoverflow.com/questions/1..., I am trying to load GPUMAT directly into OpenGL widget, but Texture2D method is not available in python as it seems.

import cv2 
cv2.ogl.Texture2D()

Any suggestions will be really helpful.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

Comments

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 -0600 )edit
1

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 -0600 )edit

Thanks for the response berak

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

Question Tools

1 follower

Stats

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

Seen: 364 times

Last updated: Mar 13 '20