从USB而非iSight(OSX)捕获OpenCV [英] OpenCV capture from USB not iSight (OSX)

查看:116
本文介绍了从USB而非iSight(OSX)捕获OpenCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OSX下将MacBook Pro与OpenCV一起使用时,我无法访问外部USB相机而不是内置的iSight.

I am having trouble accessing the external USB camera instead of the built-in iSight when using OpenCV with a MacBook Pro under Mac OSX.

将参数传递给除0或-1之外的cvCaptureFromCAM(index)函数时,我总是得到一个
Warning: Max Camera Num is 0; Using camera 0

When passing an argument to the cvCaptureFromCAM(index) function other than 0 or -1 I will always get a
Warning: Max Camera Num is 0; Using camera 0

该相机为Sony PS3 EYE,可与macam驱动程序和quicktime组件完美配合.
但是我无法使用OpenCV来访问它,它始终默认为内置的iSight(即使试图通过其他程序占用" iSight).

The camera is a Sony PS3 EYE working perfectly with the macam driver and quicktime component.
Yet I am unable to access it using OpenCV which will always default to the built-in iSight (even when trying to "occupy" the iSight with a different program).

有什么想法吗?

非常感谢您,非常感谢您的帮助!

Thank you very much in advance, your help is very much appreciated!

推荐答案

我只是搞砸了同样的问题,macam驱动程序是32位的,如果您将opencv安装编译为64位,则将无法正常工作.每当我使用ps3eye切换到32位版本时,我最终都会用mac端口两次安装64位带mac端口的opencv,并用howebrew安装32位.

I was just messing with the same problem, macam drivers are 32 bit, if your opencv install is compiled as 64 bit it won't work. I end up installing opencv twice 64 bit with mac ports and 32 bit with howebrew whenever I am using ps3eye I switch to 32 bit version.

这篇关于从USB而非iSight(OSX)捕获OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆