Package boofcv.io.webcamcapture
Class UtilWebcamCapture
java.lang.Object
boofcv.io.webcamcapture.UtilWebcamCapture
Utility functions related to Webcam capture
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
adjustResolution
(com.github.sarxos.webcam.Webcam webcam, int desiredWidth, int desiredHeight) static @Nullable com.github.sarxos.webcam.Webcam
findDevice
(String deviceName) static com.github.sarxos.webcam.Webcam
openDefault
(int desiredWidth, int desiredHeight) Opens the default camera while adjusting its resolutionstatic com.github.sarxos.webcam.Webcam
openDevice
(String deviceName, int desiredWidth, int desiredHeight) Searches for the first device which matches the pattern.
-
Constructor Details
-
UtilWebcamCapture
public UtilWebcamCapture()
-
-
Method Details
-
openDefault
public static com.github.sarxos.webcam.Webcam openDefault(int desiredWidth, int desiredHeight) Opens the default camera while adjusting its resolution -
openDevice
public static com.github.sarxos.webcam.Webcam openDevice(String deviceName, int desiredWidth, int desiredHeight) Searches for the first device which matches the pattern. Webcam capture doesn't name devices using the standard "/dev/video0" scheme, but it includes that in its name.- Parameters:
deviceName
- Partial or complete name of the device you wish to pen- Returns:
- The webcam it found
-
findDevice
-
adjustResolution
public static void adjustResolution(com.github.sarxos.webcam.Webcam webcam, int desiredWidth, int desiredHeight)
-