Package | Description |
---|---|
com.github.sarxos.webcam |
Modifier and Type | Class and Description |
---|---|
static class |
WebcamUpdater.DefaultDelayCalculator
Default impl of DelayCalculator, based on TARGET_FPS.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Webcam.open(boolean async,
WebcamUpdater.DelayCalculator delayCalculator)
Open the webcam in either blocking (synchronous) or non-blocking (asynchronous) mode.The
difference between those two modes lies in the image acquisition mechanism.
In blocking mode, when user calls Webcam.getImage() method, device is being queried for new
image buffer and user have to wait for it to be available.In non-blocking mode, there is a special thread running in the background which constantly fetch new images and cache them internally for further use. |
Constructor and Description |
---|
WebcamUpdater(Webcam webcam,
WebcamUpdater.DelayCalculator delayCalculator)
Construct new webcam updater.
|
Copyright © 2012-2018 Bartosz Firyn (SarXos). All Rights Reserved.