com.github.sarxos.webcam.WebcamDriver 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).
The newest version!
package com.github.sarxos.webcam;
import java.util.List;
/**
* Webcam drivers abstraction. The webcam driver (or capture driver, as it is
* often referred) is a factory for specific webcam device implementations.
*
* @author Bartosz Firyn (SarXos)
*/
public interface WebcamDriver {
/**
* Return all registered webcam devices.
*
* @return List of webcam devices
*/
List getDevices();
/**
* Is driver thread-safe. Thread safe drivers operations does not have to be
* synchronized.
*
* @return True in case if driver is thread-safe, false otherwise
*/
boolean isThreadSafe();
}