With this video, I am starting a new video tutorial series about image capturing and processing in Java.
For this purpose, I have used Webcam-capture library from https://github.com/sarxos/webcam-capture
Webcam-capture is a purely java based library that support a wide range of webcam hardwares and provides lots of options to take and process images.
In this video, I have explained about the library and the 3 lines of codes to write an image in to file after taking from webcam.
Webcam webcam = Webcam.getDefault();
webcam.open();
ImageIO.write(webcam.getImage(), "PNG", new File("hello-world.png"));
- Genuine Coder
http://www.genuinecoder.com/