private List <Detection> FetchNextPalmDetections() { if (!palmDetectionsStreamPoller.Next(palmDetectionsPacket)) { Debug.LogWarning($"Failed to fetch next packet from {palmDetectionsStream}"); return(new List <Detection>()); } return(palmDetectionsPacket.GetValue()); }
private List <Detection> FetchNextFaceDetections() { if (!faceDetectionsStreamPoller.Next(faceDetectionsPacket)) // blocks { Debug.LogWarning($"Failed to fetch next packet from {faceDetectionsStream}"); return(new List <Detection>()); } return(faceDetectionsPacket.GetValue()); }