Exemplo n.º 1
0
    private List <Detection> FetchNextPalmDetections()
    {
        if (!palmDetectionsStreamPoller.Next(palmDetectionsPacket))
        {
            Debug.LogWarning($"Failed to fetch next packet from {palmDetectionsStream}");
            return(new List <Detection>());
        }

        return(palmDetectionsPacket.GetValue());
    }
Exemplo n.º 2
0
    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());
    }