package net.celisdelafuente.java.ocv;
import target.classes.net.celisdelafuente.java.Iutil.ICamera;
import org.opencv.core.Mat;
import org.opencv.highgui.Highgui;
import org.opencv.highgui.VideoCapture;
public class OcvCamera implements ICamera {
private VideoCapture cam;
protected void get() {
cam = new VideoCapture(0);
if(!cam.isOpened()) {
// TODO Log error
} else {
// TODO secret sauce here!
}
}
protected void getStill() {
Mat frame = new Mat();
cam.read(frame);
}
protected int saveStills() {
// TODO magic sauce here!
// Highgui.imwrite("some.jpg", frame);
return 0;
}
}