2019-11-04 02:23:13 -05:00
|
|
|
package com.chameleonvision.classabstraction.camera;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.tuple.Pair;
|
|
|
|
|
import org.opencv.core.Mat;
|
|
|
|
|
|
|
|
|
|
public interface CameraProcess {
|
2019-11-07 09:10:09 -08:00
|
|
|
CameraProperties getProperties();
|
|
|
|
|
|
2019-11-07 16:53:31 -08:00
|
|
|
/**
|
|
|
|
|
* Get the next camera frame
|
|
|
|
|
* @return a Pair of the captured image and how long it took to grab the frame (in uS)
|
|
|
|
|
*/
|
2019-11-15 16:01:50 -05:00
|
|
|
Pair<Mat, Long> getFrame();
|
2019-11-04 02:23:13 -05:00
|
|
|
|
2019-11-07 16:53:31 -08:00
|
|
|
/**
|
|
|
|
|
* Set the exposure of the camera
|
|
|
|
|
* @param exposure the new exposure to set the camera to
|
|
|
|
|
*/
|
2019-11-04 02:23:13 -05:00
|
|
|
void setExposure(int exposure);
|
2019-11-07 16:53:31 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the exposure of the camera
|
|
|
|
|
* @param brightness the new brightness to set the camera to
|
|
|
|
|
*/
|
2019-11-04 02:23:13 -05:00
|
|
|
void setBrightness(int brightness);
|
|
|
|
|
}
|