@@ -0,0 +1,791 @@
+import org.bytedeco.javacpp.opencv_core.IplImage;%0Aimport org.bytedeco.javacpp.opencv_highgui;%0Aimport org.bytedeco.javacv.CanvasFrame;%0Aimport org.bytedeco.javacv.FrameGrabber;%0Aimport org.bytedeco.javacv.OpenCVFrameGrabber;%0A%0Apublic class webcam%7B%0A%09static IplImage bimg;%0A%09public static void main(String ar%5B%5D)throws Exception%7B%0A        CanvasFrame canvas = new CanvasFrame(%22sending%22);%0A       %0A        FrameGrabber grabber = new OpenCVFrameGrabber(%22%22);%0A%09%09try%7B%0A%09%09%09%09int i=1;%0A%09%09%09%09grabber.start();%0A%09%09%09%09IplImage img;%0A%09%09%09%09while (true) %7B%0A%09%09%09%09%09img = grabber.grab();%0A%09%09%09%09%09if (img != null) %7B%0A%09%09%09%09%09%09opencv_highgui.cvSaveImage(%22a%22+i%25200+%22.jpg%22, img); %0A%09%09%09%09%09    bimg = opencv_highgui.cvLoadImage(%22a%22+i%25200+%22.jpg%22);%0A%09%09%09%09%09    canvas.showImage(bimg);%0A%09%09%09%09%09i++;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%09%09%7D%0A    %7D%0A%7D%0A

Create webcam.java