public class CameraSelector extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFERRED_DEVICE_NAME
The name of the preferred device
|
Constructor and Description |
---|
CameraSelector() |
Modifier and Type | Method and Description |
---|---|
static VideoCapture |
getPreferredVideoCapture(int width,
int height)
Get a
VideoCapture representing the preferred device. |
static Device |
getPreferredVideoCaptureDevice() |
public static String PREFERRED_DEVICE_NAME
public CameraSelector()
public static Device getPreferredVideoCaptureDevice() throws IOException
IOException
public static VideoCapture getPreferredVideoCapture(int width, int height) throws IOException
VideoCapture
representing the preferred device.width
- the desired capture widthheight
- the desired capture heightIOException