How to snapshot webcam streaming and save to path in javafx button event
.
@FXML
private void capImage(ActionEvent event) {
VideoCapture cap = new VideoCapture(0);
while(cap.isOpened()) {
Mat frame = new Mat();
if (cap.read(frame)) {
Imgcodecs.write( "testcap".png", frame); // imgcodecs cannot find symbol
}
in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.