Skip to content

Saint-Francis-Robotics-Team2367/OpenVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenVideo for FRC Vision Processing

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.

Documentation

  • 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

Installing

Libraries

OpenCV
LibUVC

Result

Vision Target

About

library that lowers camera exposure and returns video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages