Image offset in openframeworks
Posted: 19 June 2014 03:45 AM   [ Ignore ]
New Member
Rank
Total Posts:  6
Joined  2014-06-19

Hi Guys,

I have built a simple OF project where i look for change in an incomming image. I use a playstation eye with a wide angle lens. Im using the CL-eye driver on windows 7.

I get a problem in my runtime after a couple of hours, where my image gets offset in the horizontal direction.

The error looks like this: YaHgwQY.jpg

Im initializing the camera using this snippet:

vidGrabber.setDeviceID(0);
vidGrabber.setDesiredFrameRate(60);
vidGrabber.initGrabber(camWidth,camHeight);

And grab the picture using this snippet:

vidGrabber.update();
if (vidGrabber.isFrameNew()){
unsigned char * pixels = vidGrabber.getPixels();
colorImg.setFromPixels(pixels, camWidth, camHeight);
}

Do you have any idea on what might be causing this issue? Could it be a hardware or driver issue?

Kind regards

Jesper

Profile
 
 
Posted: 23 July 2014 07:56 PM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  162
Joined  2009-09-17

@Jesper

We’ll at least it looks cool! smile Have you tested with the default “Test Application” - This will tell you if it is problem with hardware or framework (which is doubtful considering)

Profile
 
 
Posted: 23 July 2014 11:13 PM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  6
Joined  2014-06-19

I ended up swapping the camera to another. Havent seen the problem since.

I had modified the USB wire by cutting it and resoldering it because I needed to mount the camera inside a box. That might have given some noise on the USB connection.

Profile
 
 
 
 


RSS 2.0     Atom Feed