This library uses OpenCV and LIBUVC to open a usb connected camera, lowers its exposure, and returns the camera stream. FRC Vision targets use retroreflective tape, which reflects light in the direction it came from. A camera's exposure determines how much light is let in. By lowering the exposure on this camera, the vision targets in the image are more visible.
-
OpenVideo(int cameraIndex)
Constructor
cameraIndex -- ID of the camera to open. If a single camera is connected, pass 0.
Calls ChangeExposure() and opens the camera to start the stream. -
Mat getImage()
returns the current frame as a cv::Mat
-
void ChangeExposure()
uses LIBUVC to lower the exposure of the camera
-
VideoCapture * capture
Pointer to cv::VideoCapture object. More on VideoCapture