View Single Post
  #3   Spotlight this post!  
Unread 14-02-2013, 19:56
aziobro aziobro is offline
Registered User
FRC #4475 (Terrier Byte Bots)
Team Role: Leadership
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Newark,NJ
Posts: 7
aziobro will become famous soon enough
Re: Camera image crashing code???

We are seeing the same problem with our code.
There seems to be a problem with the image from the axis camera.
If we check the height and with of the image we get 0.
Even when the GetImage returns true (1) the height and width still say they are 0.


We are using the vision sample code and add the following to check the height and width.

ColorImage *image;

int cameraimagegood = camera.Getimage(image)
int width = image->GetWidth();
int height = image->GetHeight();

We checked the camera setup and it looks correct. (User FRC Password FRC)
The Camera Image is getting to the DashBoard.

We are able to run in debug mode and set breakpoints to check values.

We are stuck.... Any suggestions?
Reply With Quote