View Single Post
  #15   Spotlight this post!  
Unread 22-02-2010, 18:43
whodatbat's Avatar
whodatbat whodatbat is offline
Astrotrumpetplayer
AKA: Astrotrumpetplayer
FRC #0021 (ComBBat21)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Titusville, Flordia
Posts: 17
whodatbat is an unknown quantity at this point
Send a message via ICQ to whodatbat
Re: Programming the Camera

try this. its a simple camera code maybe it will help?

HSLImage image; // Create and set up a camera instance AxisCamera

&camera = AxisCamera::getInstance(); camera.writeResolution(k160x120);

camera.writeBrightness(0); Wait(3.0); // loop getting images from the

camera and finding targets while (IsOperatorControl())

{ // Get a camera

image camera.GetImage(image.image);

// do something with image here . . . }