-1

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

thanks.

David Arno
  • 42,717
  • 16
  • 86
  • 131

1 Answers1

0

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);
nphx
  • 1,426
  • 3
  • 19
  • 30