I want to detect the number of fingers over the leap in C# ... As a integer int fingers;

thanks.

有帮助吗?

解决方案

It's as simple as this:

int fingerCount1 = frame.Fingers.Count;

Alternatively, you can count the fingers on each hand individually:

int fingerCount2 = frame.Hands.Sum(x => x.Fingers.Count);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top