-
public interface VideoCapture
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVideoCapture.State
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DEVICE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VideoCapturedevice(String device)VideoCaptureonEOS(Runnable eos)VideoCaptureonError(Consumer<String> error)VideoCaptureonReady(Runnable ready)VideoCaptureplay()booleanrender(Consumer<PImage> renderer)VideoCapturerequestFrameRate(double fps)VideoCapturerequestFrameSize(int width, int height)VideoCapture.Statestate()VideoCapturestop()
-
-
-
Field Detail
-
DEFAULT_DEVICE
static final String DEFAULT_DEVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
device
VideoCapture device(String device)
-
play
VideoCapture play()
-
stop
VideoCapture stop()
-
state
VideoCapture.State state()
-
onReady
VideoCapture onReady(Runnable ready)
-
onError
VideoCapture onError(Consumer<String> error)
-
onEOS
VideoCapture onEOS(Runnable eos)
-
requestFrameSize
VideoCapture requestFrameSize(int width, int height)
-
requestFrameRate
VideoCapture requestFrameRate(double fps)
-
-