Welcome to DigiForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem using CMU driver with PGR camera

 
   Digital Camera Community (Home) -> General Discussions RSS
Next:  SDHC and SD1000  
Author Message
saad.choudri

External


Since: Jun 18, 2007
Posts: 1



(Msg. 1) Posted: Mon Jun 18, 2007 11:25 am
Post subject: Problem using CMU driver with PGR camera
Archived from groups: rec>photo>digital (more info?)

Hi,

I have used the CMU camera driver for the 1394 spec with Matlab before
and have been able to use the PGR DragonFly for live image streaming.
There was no problem then.

I am using the same driver now with only Visual C++ (MS VS 2005) but
am not able to get this camera working with my code. The code works
fine with other cameras but not this one. It cant initialise this type
of camera. The demo that comes with CMU runs the camera in its RAW
Bayer format ( i.e. black and white with the dots). I think it may be
a bayersensoralignment problem but havent been able to work out how to
rectify this. Ive extracted bits from the code and pasted them
below.:


#include "stdafx.h"
#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
#include "cvaux.h"
#include "1394camera.h"

#define CAM_RES_WIDTH 640
#define CAM_RES_HEIGHT 480
#define CAM_RES_CHANNELS 3


int main( int argc, char** argv )
{


// Camera initialisation


C1394Camera cam0;


// cam1.RefreshCameraList();


cam0.RefreshCameraList();
cam0.SelectCamera(0);


if(cam0.InitCamera() != CAM_SUCCESS)
{
printf("\nInitialization failed .");
return 1;
}
if(cam0.SetVideoFormat(0) != CAM_SUCCESS)
{
printf("\nCould not set video format.");
return 1;
}
if(cam0.SetVideoMode(2) != CAM_SUCCESS)
{
printf("\nCould not set video mode.");
return 1;
}
if(cam0.SetVideoFrameRate(4) != CAM_SUCCESS)
{
printf("\nCould not set frame rate.");
return 1;
}
if(cam0.StartImageAcquisition() != CAM_SUCCESS)
{
printf("\nCould not start image acquisation.");
return 1;
}


cvWaitKey(1000);

cvNamedWindow( "Live Input",1);
HWND hWnD =reinterpret_cast<HWND>(cvGetWindowHandle( "Live
Input" ));
CameraControlDialog(hWnD,&cam0,TRUE);

// declaring image pointer (OPENCV)
IplImage *I1 =
cvCreateImage( cvSize(CAM_RES_WIDTH,CAM_RES_HEIGHT),
8U,CAM_RES_CHANNELS);

//acquire image ...
while (j==1)
{


if(cam0.AcquireImage() != CAM_SUCCESS)
{
printf("\nCould not acquire image. from cam0");
return 1;
}



cam0.getRGB((unsigned char*)(I1->imageData),
(CAM_RES_WIDTH*CAM_RES_HEIGHT*CAM_RES_CHANNELS));

cvShowImage("Live Input", I1);
}

}
--------------

I have tried various combinations of values in the intialisation bit .
It just fails to initialise giving the error in the printf bit above,
i.e. first step, which is

if(cam0.InitCamera() != CAM_SUCCESS)
{
printf("\nInitialization failed .");
return 1;
}

Any advice on this will be helpful.


Thank you,
Saad Choudri

 >> Stay informed about: Problem using CMU driver with PGR camera 
Back to top
Login to vote
Paul Allen

External


Since: Jul 07, 2006
Posts: 157



(Msg. 2) Posted: Wed Jun 20, 2007 8:20 am
Post subject: Re: Problem using CMU driver with PGR camera [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Most people here are not programmers. And of the programmers, the
number with specific experience with Visual C++ and the CMU camera
driver is probably quite close to zero.

Your best shot is likely to ask the maintainers at CMU. Unfortunately,
the code's author died in 2000 and his colleagues are maintaining his
code as a tribute to his memory.

Good luck.

Paul Allen

 >> Stay informed about: Problem using CMU driver with PGR camera 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Functionally driver for Technaxx C6000 camera HELP! - I search a functionally driver for my camera/hard-disk Technaxx C6000. The driver into Installation Cd of this product doesn' t play and Xp tells me that there are errors. At the official site of Technaxx i have downloaded another driver for my camera..

Nisis Gs Easypen - need driver - Can anybody help me? Have bought one of these just for simple use by the kids. Didn't need anything professional. The driver that came with it won't install!!!Arrrggghhh Can anybody point towards up to date driver? Company website looks down and tech..

Logitech Fotoman FM 1: Driver needed - hi, years ago Fotoman fm 1 was one of the first digital cameras. I want to buy one now. But there is no software for DOS or Windows. As I see, I would need Fototouch and the driver. Any help? Thanks in advance Andreas

HDR Problem - Greetings, Using Photoshop CS 2, having problems with the Merge to HDR function. I've taken a series of photographs in RAW capture mode. These are generally -2, -1, 0, +1, +2 EV. When I load these five images into the function, I get "There is n...

The Red Eye Problem - After reading hundreds of reviews of digital cameras on tens of sites, i noticed that lots of digital cameras have red eye problem, how one can fix this problem ! is there any scientific way to avoide it ? if it happened how it can be fixed ? what..
   Digital Camera Community (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]