【发布时间】:2023-03-13 20:09:01
【问题描述】:
我正在尝试从 GoBot Go Lang OpenCV 运行 OpenCV 测试应用程序。我尝试运行该页面中给出的示例代码,但得到的只是一个错误:
2016/06/10 20:15:26 Initializing Robot cameraBot ...
2016/06/10 20:15:26 Initializing devices...
2016/06/10 20:15:26 Initializing device window ...
2016/06/10 20:15:26 Initializing device camera ...
2016/06/10 20:15:26 Starting Robot cameraBot ...
2016/06/10 20:15:26 Starting connections...
2016/06/10 20:15:26 Starting devices...
2016/06/10 20:15:26 Starting device window...
/usr/share/themes/Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:40: Unable to locate image file in pixmap_path: "Entry/entry-border-bg-solid.png"
/usr/share/themes/Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:43: Background image options specified without filename
/usr/share/themes/Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:49: Unable to locate image file in pixmap_path: "Entry/entry-border-active-bg-solid.png"
/usr/share/themes/Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:52: Background image options specified without filename
init done
opengl support available
2016/06/10 20:15:26 Starting device camera...
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
2016/06/10 20:15:26 Starting work...
我做错了什么?我之前已经安装并运行过 C++ OpenCV
【问题讨论】:
-
除了缺少图像文件警告之外,我在这里看到的唯一问题是您的 HIGHGUI ERROR 日志。你在this见过吗?
-
谢谢,我修好了那部分,你能告诉我那些图片缺少什么吗??
-
很难说,看起来像是一个影响多个用户的 gtk 错误。你在什么操作系统上?我将尝试运行您的示例。
-
似乎比您模棱两可的警告更多。 gobot/platforms/opencv 给了我一个 404。但是在使用 brew 安装 opencv 后,hellocv.go here 在 OSX 上为我工作。他们显然没有更新文档,如果您对 gobot 没有特定用途,请查看 hybridgroup/go-opencv。