@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
counter++;
}
in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.