Azure Kinect Body Tracking SDK  1.1.2

◆ PopResult() [1/2]

Frame Microsoft.Azure.Kinect.BodyTracking.Tracker.PopResult ( TimeSpan  timeout,
bool  throwOnTimeout = true 
)
inline

Gets the next available body frame.

Parameters
timeoutTime the function should block waiting for the body frame. 0 is a check of the queue without blocking.
throwOnTimeoutIf set to false, on timeout failure null will be returned instead of throwing exception.
Returns
If successful this contains a handle to a body frame object.

Retrieves the next available body frame result and pop it from the output queue in this tracker instance. If a new body frame is not currently available, this function will block up until the timeout is reached. The SDK will buffer at least three body frames worth of data before stopping new capture being queued by EnqueueCapture(Capture, TimeSpan).

Upon successfully reads a body frame this function will return success.

This function will fail when either the tracker is shut down by Shutdown API and the remaining tracker queue is empty, or an internal problem is encountered: such as low memory condition, other unexpected issues.