Trying to capture video using SDK and C++
Posted: 03 November 2010 09:10 AM   [ Ignore ]
New Member
Rank
Total Posts:  7
Joined  2010-11-03

Hi,

I’m struggling to get the SDK working.  Here is my code:

mCam CLEyeCreateCamera(CLEyeGetCameraUUID(0), CLEYE_MONO_RAWCLEYE_VGA30);
CLEyeSetCameraParameter(mCamCLEYE_GAIN10);
CLEyeSetCameraParameter(mCamCLEYE_EXPOSURE511);

CLEyeCameraStart(mCam);

mBuffer = new unsigned char[CAM_XRES*CAM_YRES];

while(
1)
     
CLEyeCameraGetFrame(mCammBuffer); 

The red light on the webcam flashes up breifly, before turning off.  When run in debug mode, there is an access violation, presumably somewhere in the multicam dll.

Any ideas what I’m doing wrong?

Profile
 
 
Posted: 06 November 2010 09:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

Your code looks ok. If you are experiencing problems, may I suggest you starting by modifying sample code included in the SDK. This way you have a starting point that works and you can then modify it any way you like.

Profile
 
 
 
 


RSS 2.0     Atom Feed