Package boofcv.io.wrapper
Class DynamicWebcamInterface
java.lang.Object
boofcv.io.wrapper.DynamicWebcamInterface
- All Implemented Interfaces:
WebcamInterface
Implementation of
WebcamInterface
that sees which of the known libraries are available and uses
the best ones. Reflection is used to check what's available.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebcamInterface
loadManager
(String pathToManager) Loads the specified defaultVideoInterface
.<T extends ImageBase<T>>
SimpleImageSequence<T>Opens the webcam.
-
Constructor Details
-
DynamicWebcamInterface
public DynamicWebcamInterface()
-
-
Method Details
-
open
public <T extends ImageBase<T>> SimpleImageSequence<T> open(String device, int width, int height, ImageType<T> imageType) Description copied from interface:WebcamInterface
Opens the webcam. The specified resolution is a suggestion only.- Specified by:
open
in interfaceWebcamInterface
- Parameters:
device
- Which webcam to openwidth
- Desired image widthheight
- Desired image heightimageType
- Type of image- Returns:
SimpleImageSequence
for the webcam.
-
loadManager
Loads the specified defaultVideoInterface
.- Returns:
- Video interface
-