RunningMode

public enum RunningMode


MediaPipe vision task running mode. A MediaPipe vision task can be run with three different modes:

  • IMAGE: The mode for running a mediapipe vision task on single image inputs.
  • VIDEO: The mode for running a mediapipe vision task on the decoded frames of a video.
  • LIVE_STREAM: The mode for running a mediapipe vision task on a live stream of input data, such as from camera.

Summary

Enum Values

IMAGE
LIVE_STREAM
VIDEO

Public methods

static RunningMode

Returns the enum constant of this type with the specified name.

static RunningMode[]

Returns an array containing the constants of this enum type, in the order they're declared.

Public methods

valueOf

public static RunningMode valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
RunningMode

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static RunningMode[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
RunningMode[]

an array containing the constants of this enum type, in the order they're declared