Finger.IsExtended Leap Motion C#
Finger.IsExtended Leap Motion C#
我想在 c# 中使用 windows 表单应用程序检测手指弯曲。
我很难补充(我是从this读到的):
HandList hands = frame.Hands;
FingerList fingers = hands.Fingers;
int extendedFingers = 0;
for (int f = 0; f < hands.Fingers.Count; f++)
{
Finger digit = hands.Fingers[f];
if(fingers.IsExtended) extendedFingers++;
label1.Text = f.ToString();
}
因为错误出现在程序的第二行,它说
"Leap.Handlist does not contain definition of a "Fingers""
我是不是漏掉了什么?
如果我从 this one 尝试,我必须在哪里添加这些程序?
在void newFrameHandler(Frame frame)
?
"Leap.Handlist does not contain definition of a "Fingers""
大概Handlist类似于数组。我希望单个 Hand
来定义 Fingers
,而不是 Hands
.
的数组
你需要一个
手
没有
HAND_S_
我想在 c# 中使用 windows 表单应用程序检测手指弯曲。
我很难补充(我是从this读到的):
HandList hands = frame.Hands;
FingerList fingers = hands.Fingers;
int extendedFingers = 0;
for (int f = 0; f < hands.Fingers.Count; f++)
{
Finger digit = hands.Fingers[f];
if(fingers.IsExtended) extendedFingers++;
label1.Text = f.ToString();
}
因为错误出现在程序的第二行,它说
"Leap.Handlist does not contain definition of a "Fingers""
我是不是漏掉了什么?
如果我从 this one 尝试,我必须在哪里添加这些程序?
在void newFrameHandler(Frame frame)
?
"Leap.Handlist does not contain definition of a "Fingers""
大概Handlist类似于数组。我希望单个 Hand
来定义 Fingers
,而不是 Hands
.
你需要一个
手
没有