Quote:
Originally Posted by gyroscopeRaptor
How do we make it actually display video on the driver panel?
|
If you take a look at the 2010 Camera Tracking example included in your WindRiver installation, you'll see some camera code.
You basically need to do a few things,
Code:
// In your constructor
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(CAMERA_RESOLUTION);
camera.WriteCompression(CAMERA_COMPRESSION);
camera.WriteBrightness(CAMERA_BRIGHTNESS);
camera.WriteMaxFPS(CAMERA_MAX_FPS);
camera.WriteExposureControl(CAMERA_EXPOSURE);
camera.WriteWhiteBalance(CAMERA_WHITE_BALANCE);
// When you want to display a new image.
if (camera.IsFreshImage()) {
HSLImage *image = camera.GetImage();
}
You can find more sample code at
https://github.com/MMRambotics/RetroreflectiveTracking.