public class UtilWebcamCapture
extends java.lang.Object
| Constructor and Description |
|---|
UtilWebcamCapture() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustResolution(com.github.sarxos.webcam.Webcam webcam,
int desiredWidth,
int desiredHeight) |
static com.github.sarxos.webcam.Webcam |
findDevice(java.lang.String deviceName) |
static com.github.sarxos.webcam.Webcam |
openDefault(int desiredWidth,
int desiredHeight)
Opens the default camera while adjusting its resolution
|
static com.github.sarxos.webcam.Webcam |
openDevice(java.lang.String deviceName,
int desiredWidth,
int desiredHeight)
Searches for the first device which matches the pattern.
|
public static com.github.sarxos.webcam.Webcam openDefault(int desiredWidth,
int desiredHeight)
public static com.github.sarxos.webcam.Webcam openDevice(java.lang.String deviceName,
int desiredWidth,
int desiredHeight)
deviceName - Partial or complete name of the device you wish to penpublic static com.github.sarxos.webcam.Webcam findDevice(java.lang.String deviceName)
public static void adjustResolution(com.github.sarxos.webcam.Webcam webcam,
int desiredWidth,
int desiredHeight)