gpt4 book ai didi

opencv - Gobot OpenCV 失败

转载 作者:IT王子 更新时间:2023-10-29 02:14:13 25 4
gpt4 key购买 nike

我正在尝试从 GoBot 运行 OpenCV 测试应用程序 Go Lang 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

最佳答案

跟进评论;我给了 gobot 另一个 sample opencv_face_detect它对我有用。尽管您发布的示例链接似乎有问题/已过时。

这是在 OS X 10.11.5 和 go1.6.2 darwin/amd64 上。

这是我做的步骤;

  • 安装opencv;

    brew tap homebrew/science && brew install opencv

  • 安装gobot和go-opencv;

    go get github.com/hybridgroup/gobot && go get github.com/lazywei/go-opencv

  • 运行位于“github.com/hybridgroup/gobot/examples”的 face_detect 示例,不要忘记微笑!

    go run opencv_face_detect.go

enter image description here

关于opencv - Gobot OpenCV 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37755099/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com