Exemple #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());
    }
Exemple #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());
    }