BeagleBone,OpenCV和网络摄像头问题 [英] BeagleBone, OpenCV and webcam issue
问题描述
我一直在尝试 BeagleBone 使用 OpenCV 和一个捕获摄像头,但我不能设法做到目前为止。我使用 Logitech C270 网络摄像头。这是我到目前为止做的:
I've been trying to get BeagleBone work with OpenCV and a capture camera, but I couldn't manage to do it so far. I use Logitech C270 webcam. Here is what I did so far:
- 我安装了OpenCV二进制文件,试过我的相机。捕获没有工作。我从Git下载了最新版本并编译。
- Ångström预装了OpenCV,我直接尝试连接网络摄像头。但我有选择超时错误,当我保存捕获的图像,它都是黑色的。
- 我从Ångström删除了OpenCV(
opkg remove opencv
和opencv-dev
)。它说它工作,但图书馆仍然在/ usr
。所以我手动删除它们并复制我在主机中交叉编译的库。但现在,我甚至不能连接到相机。 Capture再次返回null。
- I installed OpenCV binaries and tried my camera. Capture didn't work. I downloaded the latest version from Git and compiled it. Then it worked on my desktop.
- Since Ångström have pre-installed OpenCV, I directly tried to connect the webcam. But I had "select timeout" errors and when I saved the captured image, it was all black.
- I deleted OpenCV from Ångström (
opkg remove opencv
andopencv-dev
). It said it worked, but libraries were still in/usr
. So I deleted them manually and copied libraries that I cross-compiled in my host. But now, I cannot even connect to camera. Capture returns null again.
我检查了opkg列表安装,仍然列出了OpenCV 2.4。但是, / usr / lib
中的库和include是我复制的。我如何解决这个问题?
I checked opkg list-installed, still OpenCV 2.4 is listed there. However, libraries in /usr/lib
and include are the ones that I copied. How can I fix this problem?
Note: Webcam is recognized by Ångström, and dmesg shows successful connection to the webcam.
推荐答案
安装时出现错误的Linux本身。我重新编译了最新的Ångström并安装到BeagleBone。一切工作正常,因为它应该。看起来有时候是更好的采取艰难的方式。
It seems something was wrong on installation of Linux itself. I re-compiled the latest Ångström and installed it to BeagleBone. Everything worked fine as it should. It seems sometimes it's better to take the hard way.
这篇关于BeagleBone,OpenCV和网络摄像头问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!