com.github.sarxos.webcam.WebcamDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webcam-capture Show documentation
Show all versions of webcam-capture Show documentation
This library allows you to use your PC webcam, IP or network cameras directly from Java. It's compatible with most operating systems (Windows, Linux, MacOS).
package com.github.sarxos.webcam;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
public interface WebcamDevice {
public String getName();
public Dimension[] getSizes();
public Dimension getSize();
public void setSize(Dimension size);
public BufferedImage getImage();
public void open();
public void close();
}