dongsou4301
2016-06-10 18:34
浏览 67
已采纳

Gobot OpenCV失败

I'm trying to run OpenCV test application from GoBot Go Lang OpenCV . I tried to run the example code given in that page and all I get is an error:

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...

What am I doing wrong? I have installed and run C++ OpenCV before

图片转代码服务由CSDN问答提供 功能建议

我正在尝试从GoBot中运行OpenCV测试应用程序转到Lang OpenCV 。 我尝试运行该页面中给出的示例代码,而我得到的只是一个错误:

  2016/06/10 20:15:26初始化机器人cameraBot ... \  n2016 / 06/10 20:15:26初始化设备... 
2016 / 06/10 20:15:26初始化设备窗口... 
2016 / 06/10 20:15:26初始化设备摄像头... \  n2016 / 06/10 20:15:26正在启动机器人cameraBot ... 
2016 / 06/10 20:15:26正在启动连接... 
2016 / 06/10 20:15:26正在启动设备... 
2016  / 06/10 20:15:26正在启动设备窗口... 
 / usr / share / themes / Yuyo-Dark / gtk-2.0 / Apps / libreoffice.rc:40:无法在pixmap_path中找到图像文件:“条目 /entry-border-bg-solid.png"
/usr/share/themes/Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:43:指定的背景图片选项不带文件名
 / usr / share / themes  /Yuyo-Dark/gtk-2.0/Apps/libreoffice.rc:49:无法在pixmap_path中找到图像文件:“ Entry / entry-border-active-bg-solid.png” 
 / usr / share / themes / Yuyo  -Dark / gtk-2.0 / Apps / libreoffice.rc:52:指定了不带Filena的背景图像选项 我
init完成了
opengl支持可用
2016 / 06/10 20:15:26正在启动设备摄像头... 
HIGHGUI错误:V4L / V4L2:VIDIOC_S_CROP 
2016 / 06/10 20:15:26正在启动工作...  
   
 
 

我在做什么错? 我之前已经安装并运行C ++ OpenCV

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dqyuipw44576 2016-06-11 20:22
    已采纳

    Following up on comments; I gave gobot another go for the sample opencv_face_detect and it works for me. Although the example link you posted seems to be faulty/outdated.

    This is on OS X 10.11.5 and go1.6.2 darwin/amd64.

    Here are the steps I did;

    • Install opencv;

      brew tap homebrew/science && brew install opencv

    • Install gobot and go-opencv;

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

    • Run the face_detect example located at "github.com/hybridgroup/gobot/examples" and don't forget to smile!

      go run opencv_face_detect.go

    enter image description here

    打赏 评论

相关推荐 更多相似问题