BAEL-4239 - code refactor
This commit is contained in:
parent
4440c3e9c5
commit
609e0a4492
|
@ -21,11 +21,11 @@ public class MarvinExample {
|
|||
videoAdapter.connect(0);
|
||||
MarvinImage image = videoAdapter.getFrame();
|
||||
|
||||
MarvinImagePanel videoPanel = new MarvinImagePanel();
|
||||
videoPanel.setImage(image);
|
||||
MarvinImagePanel imagePanel = new MarvinImagePanel();
|
||||
imagePanel.setImage(image);
|
||||
|
||||
videoPanel.setSize(800,600);
|
||||
videoPanel.setVisible(true);
|
||||
imagePanel.setSize(800,600);
|
||||
imagePanel.setVisible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public class OpenCVExample {
|
|||
IplImage img = converter.convert(frame);
|
||||
cvSaveImage("selfie.jpg", img);
|
||||
|
||||
canvas.showImage(converter.convert(img));
|
||||
canvas.showImage(frame);
|
||||
|
||||
Thread.sleep(2000);
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ public class WebcamCaptureExample {
|
|||
BufferedImage image = webcam.getImage();
|
||||
|
||||
ImageIO.write(image, ImageUtils.FORMAT_JPG, new File("selfie.jpg"));
|
||||
|
||||
//WebcamUtils.capture(webcam, "selfie1.jpg");
|
||||
}
|
||||
|
||||
public void captureWithPanel() {
|
||||
|
|
Loading…
Reference in New Issue