2019-11-23 11:55:20 -05:00
|
|
|
package com.chameleonvision.vision.camera;
|
|
|
|
|
|
2019-11-25 05:34:04 -05:00
|
|
|
import com.chameleonvision.vision.image.ImageCapture;
|
2019-11-23 11:55:20 -05:00
|
|
|
import edu.wpi.cscore.VideoMode;
|
|
|
|
|
|
2019-11-25 05:34:04 -05:00
|
|
|
public interface CameraCapture extends ImageCapture {
|
2019-11-23 11:55:20 -05:00
|
|
|
USBCameraProperties getProperties();
|
|
|
|
|
|
2019-11-27 21:11:05 -08:00
|
|
|
public VideoMode getCurrentVideoMode();
|
|
|
|
|
|
2019-11-23 11:55:20 -05:00
|
|
|
/**
|
|
|
|
|
* Set the exposure of the camera
|
|
|
|
|
* @param exposure the new exposure to set the camera to
|
|
|
|
|
*/
|
|
|
|
|
void setExposure(int exposure);
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-26 01:45:35 -05:00
|
|
|
* Set the brightness of the camera
|
2019-11-23 11:55:20 -05:00
|
|
|
* @param brightness the new brightness to set the camera to
|
|
|
|
|
*/
|
|
|
|
|
void setBrightness(int brightness);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the video mode (fps and resolution) of the camera
|
|
|
|
|
* @param mode the wanted mode
|
|
|
|
|
*/
|
|
|
|
|
void setVideoMode(VideoMode mode);
|
2019-11-26 01:45:35 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the gain of the camera
|
|
|
|
|
* NOTE - Not all cameras support this.
|
|
|
|
|
* @param gain the new gain to set the camera to
|
|
|
|
|
*/
|
|
|
|
|
void setGain(int gain);
|
2019-11-23 11:55:20 -05:00
|
|
|
}
|