public class
BaseVisionTaskApi
Known Direct Subclasses |
The base class of MediaPipe vision tasks.
Public Constructors
BaseVisionTaskApi(TaskRunner runner, RunningMode runningMode, String imageStreamName, String normRectStreamName)
Constructor to initialize a
BaseVisionTaskApi . |
Public Methods
void |
close()
Closes and cleans up the MediaPipe vision task.
|
static long |
generateResultTimestampMs(RunningMode runningMode, Packet packet)
Generates the timestamp of a vision task result object from the vision task running mode and
the output packet.
|
Inherited Methods
Public Constructors
public BaseVisionTaskApi (TaskRunner runner, RunningMode runningMode, String imageStreamName, String normRectStreamName)
Constructor to initialize a BaseVisionTaskApi
.
Parameters
runner | a TaskRunner . |
---|---|
runningMode | a mediapipe vision task RunningMode . |
imageStreamName | the name of the input image stream. |
normRectStreamName | the name of the input normalized rect image stream used to provide (mandatory) rotation and (optional) region-of-interest. |
Public Methods
public void close ()
Closes and cleans up the MediaPipe vision task.
public static long generateResultTimestampMs (RunningMode runningMode, Packet packet)
Generates the timestamp of a vision task result object from the vision task running mode and the output packet.
Parameters
runningMode | MediaPipe Vision Tasks RunningMode . |
---|---|
packet | the output ERROR(/Packet) .
|