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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebcamInterfaceloadManager(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:WebcamInterfaceOpens the webcam. The specified resolution is a suggestion only.- Specified by:
openin interfaceWebcamInterface- Parameters:
device- Which webcam to openwidth- Desired image widthheight- Desired image heightimageType- Type of image- Returns:
SimpleImageSequencefor the webcam.
-
loadManager
Loads the specified defaultVideoInterface.- Returns:
- Video interface
-