private List <NormalizedRect> FetchNextFaceRectsFromLandmarks() { if (!faceRectsFromLandmarksStreamPoller.Next(faceRectsFromLandmarksPacket)) // blocks { Debug.LogWarning($"Failed to fetch next packet from {faceRectsFromLandmarksStream}"); return(new List <NormalizedRect>()); } return(faceRectsFromLandmarksPacket.GetValue()); }
private List <NormalizedRect> FetchNextMultiPalmRects() { if (!multiPalmRectsStreamPoller.Next(multiPalmRectsPacket)) { Debug.LogWarning($"Failed to fetch next packet from {multiPalmRectsStream}"); return(new List <NormalizedRect>()); } return(multiPalmRectsPacket.GetValue()); }