OpenCV Python OpenGL Texture

OpenCV Python OpenGL Texture,第1张

OpenCV Python OpenGL Texture

I find it very unlikely that your camera is providing a 720 pixel wide and
1280 pixel high image as you tell to OpenGL here:

glTexImage2D(GL_TEXTURE_2D,      0,      GL_RGB,      720,1280,    // <---- HERE      0,      GL_RGB,      GL_UNSIGNED_BYTE,      image)

It seems you just mixed up those two parametes, so the data is reinterpreted
as such, resulting in the output you got.



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5648786.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存