Ask Your Question

Revision history [back]

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
     counter++;    
 }

in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.

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 counter++; counter++;
}

}

in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.

click to hide/show revision 3
None

updated 2018-07-12 02:30:41 -0600

berak gravatar image

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 counter++;
}

in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.

click to hide/show revision 4
None

updated 2018-07-12 02:31:05 -0600

berak gravatar image

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
         counter++;   counter++; 
}

}

in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.

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
         counter++;    
     }

in opencv 341 anything wrong and i am beginner programmer thank you for commennt. thank sir.