OpenCV ライブラリの処理に問題があります。
http://ubaa.net/shared/processing/opencv/index.html
私は可能な限り最も基本的なサンプルコードを実行しています:
import hypermedia.video.*;
OpenCV opencv;
void setup ()
{
opencv = new OpenCV( this );
opencv.capture( width, height );
}
void draw ()
{
opencv.read();
background( opencv.image() );
}
But every time, I get the console message:
SGIdle failed in icvGrabFrame_QT_Cam with error -1
and get no video input. My webcam turns on, but the program hangs.
I have seen others online with this problem, however I have not found a single source. I have a feeling it has something to do with QuickTime's video capture, but I'm not sure.
System info:
- Recent MacBook Pro with built-in iSight camera
- OS X 10.7.3 (Lion)
- QuickTime 10.1
- OpenCV 1.1
- Processing 1.5.1
Does anyone know what is going on? It's difficult to get to the actual project when the most basic functionality of the library doesn't work...