问题发生:
在树莓派上使用opencv的时候,出现如下错误:
window system doesn't support opengl
经过定位,发现是在cvShowImage出现该错误的,经过分析,原因是树莓派系统装的是opengl的简易版,所以不支持cvShowImage,解决方法如下Solutions.
Problem:
I have a project which uses the raspberry pi camera and openCV to do some movement analysis. However, when I want to display the image (with the openCV API or a ROS node), there’s an error saying
window system doesn't support opengl
Solutions:
Raspberry Pi doesn’t come with OpenGL support by default, but it’s a simple installation. I believe you will just need to install libgl1-mesa-dri. You can do that at the command line using: Code:
$ apt-get update
$ apt-get install libgl1-mesa-dri
树莓派OpenCV显示问题

本文介绍了解决树莓派使用OpenCV显示图像时遇到的“系统不支持OpenGL”错误的方法。通过安装libgl1-mesa-dri库,可以为树莓派添加OpenGL支持,从而解决cvShowImage函数无法正常工作的问题。
6752

被折叠的 条评论
为什么被折叠?



