示例#1
0
    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());
    }
示例#2
0
    private List <NormalizedRect> FetchNextMultiPalmRects()
    {
        if (!multiPalmRectsStreamPoller.Next(multiPalmRectsPacket))
        {
            Debug.LogWarning($"Failed to fetch next packet from {multiPalmRectsStream}");
            return(new List <NormalizedRect>());
        }

        return(multiPalmRectsPacket.GetValue());
    }