[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libcvd-members] DV Camera Access
From: |
E. Rosten |
Subject: |
Re: [libcvd-members] DV Camera Access |
Date: |
Sun, 13 Dec 2009 15:42:28 +0000 (GMT) |
User-agent: |
Alpine 2.00 (LSU 1167 2008-08-23) |
On Fri, 11 Dec 2009, address@hidden wrote:
Hello everyone,
I'm new to this mailing list. I am trying to get the demo code for
accessing a camera to work with my Unibrain Fire-i camera under OSX
This camera works both under quicktime and libdc1394, though the latter
has to be installed on OSX. If you don't have it installed, you can get
the camera images usnig qt://
10.6. I am fairly certain this is a DV camera. I can see video using
It's a "DC" camera, not "DV". Libcvd refers to DC cameras as DV, though.
iChat but the example code gets the runtime error "Program received
signal SIGABRT" (using XCode). Is there something else that I need to
have installed to be able to access my Fire-i camera from libCVD in OSX
10.6? Any help is greatly appreciated.
Libcvd may be giving you an error. To display it, add the lines:
#include <cvd/videosource.h>
#include <cvd/videodisplay.h>
#include <cvd/gl_helpers.h>
using namespace CVD;
int main()
{
try{
VideoBuffer<Rgb<byte> > * video_buffer = open_video_source<Rgb<byte>
>("dc1394://0");
VideoDisplay disp(video_buffer->size());
while(1)
{
VideoFrame<Rgb<byte> > *frame = video_buffer->get_frame();
glDrawPixels(*frame);
video_buffer->put_frame(frame);
}
}
catch(Exceptions::All e)
{
cerr << "Error: " << e.what << endl;
}
}
-Dewayne
-Ed