Page Summary
-
Config.UpdateMode selects the behavior of Session.update().
-
BLOCKING mode makes
update()wait for a new camera image, returning the most recent Frame if a timeout occurs. -
LATEST_CAMERA_IMAGE mode makes
update()return immediately without waiting, returning the most recent Frame if no new image is available.
public static final enum
Config.UpdateMode
Selects the behavior of Session.update().
Inherited Methods
Enum Values
public static final Config.UpdateMode BLOCKING
BLOCKING
public static final Config.UpdateMode BLOCKING
update() will normally wait until a new camera image is available. On most devices
the camera is configured to capture 30 frames per second.
Note: If the camera image does not arrive by the built-in timeout (currently 66ms), then
update() will instead return the most recent Frame object.
public static final Config.UpdateMode LATEST_CAMERA_IMAGE
LATEST_CAMERA_IMAGE
public static final Config.UpdateMode LATEST_CAMERA_IMAGE
update() will return immediately without blocking. If no new camera image is
available, then update() will return the most recent Frame object.