Re: [libdc] Capture hangs
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Yahya C. <yca...@ma...> - 2010-12-15 15:57:03
|
Yeah it's probably a good idea to stick with vendor-provided API if you can. Each API has its own way to manage trigger modes so you should check the FlyCapture API. Triggers fall into either software-mode or hardware-mode. If the cameras are capturing frames just fine for a while and then stop working, checking to make sure the cameras are getting triggers and are capturing would be one of the first things I'd do. Good luck! Yahya On Dec 15, 2010, at 9:35 AM, Dan Pojar wrote: > Hi Yahya, > > I got into possession of the FlyCapture2 API so i'm using that instead of libdc1934 and I don't really have a reason to switch. How can I find out how the camera is triggered? > > On Wed, Dec 15, 2010 at 3:23 PM, Yahya Cahyadi <yca...@ma...> wrote: > Hi Dan, > > Could the problem be on the triggering side of the code? How is the camera being triggered? > > Thx > ---------------- > Yahya Cahyadi > > On Nov 19, 2010, at 5:31 AM, Dan Pojar <dan...@gm...> wrote: > > > Hello, > > > > I'm trying to capture images with a Bumblebee2 08S2C camera. > > First of all, I can make it work under Windows with the API and libs from PointGrey, no problem there. > > When I try to use it in Linux I can capture only the number of frames in the buffer reserved with dc1394_capture_setup > > after which the camera seems to hang. > > The code I'm trying to run is very basic: > > > > for(int frames = 0; frames < 20; frames++) { > > err = dc1394_capture_dequeue( stereoCamera.camera, > > DC1394_CAPTURE_POLICY_WAIT, > > &frame ); > > if ( err != DC1394_SUCCESS ) > > { > > fprintf( stderr, "extractImagesColor - cannot dequeue image!\n" ); > > return 1; > > } > > > > err = dc1394_capture_enqueue( stereoCamera.camera, frame ); > > if ( err != DC1394_SUCCESS ) > > { > > fprintf( stderr, "dc1394_capture_enqueue - cannot enqueue image!\n" ); > > return 1; > > } > > printf("Run %d successful\n", frames); > > } > > > > In this case the output is: > > > > dan@dan-laptop:~/Downloads/pgr-stereo-examples-libdc-2.0.2/simplegrab$ > > ./simplegrab > > There were 1 camera(s) found attached to your PC > > Camera 0 model = 'Bumblebee2 BB2-08S2C' > > Using this camera > > Setting stereo video capture mode > > Start transmission > > Wait for the auto-gain algorithm to stabilize > > Run 0 successful > > Run 1 successful > > Run 2 successful > > Run 3 successful > > Run 4 successful > > Run 5 successful > > Run 6 successful > > Run 7 successful > > Run 8 successful > > Run 9 successful > > Run 10 successful > > Run 11 successful > > Run 12 successful > > Run 13 successful > > Run 14 successful > > Run 15 successful > > ^C > > I'm using Ubuntu 10.10, kernel 2.6.35-22 generic and libdc1394-22-dev 2.1.2-3 > > > > Thank you, > > Dan > > ------------------------------------------------------------------------------ > > Lotusphere 2011 > > Register now for Lotusphere 2011 and learn how > > to connect the dots, take your collaborative environment > > to the next level, and enter the era of Social Business. > > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > > Mailing list for libdc1394-devel > > lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d_______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel |