我想知道如何在Java Swing應用程序和我的跳躍運動監聽器之間進行通信。 因爲我希望在我的應用程序中,當我點擊一個按鈕時,我可以用閏秒動作看到的手指數來改變一個數字。 我有一個Java Swing應用程序: public class KidCountingFrame extends JFrame
而且一個大躍進運動的Runnable: public class LeapMouse impl
@Override
public void onFrame(Controller arg0) {
Frame frame = arg0.frame();
for (int i = 0; i < frame.gestures().count(); i++) {
Gesture gesture = frame.gesture(i);
if
我想要使用Leap Motion來獲取我的食指在空間中的位置(3D位置X,Y,Z),我如何在跳躍運動中做到這一點? 這就是我只做檢測食指,但有一個錯誤: def on_frame(self, controller):
# Get the most recent frame and report some basic information
frame = controller.
注意:我完全不知道矢量數學問題,特別是在3D中。 我目前正在研究一些Javascript代碼,它決定了一個被Leap Motion控制器捕獲的手指是否被擴展(即完全直線)。 Leap Motion爲我們提供了一個API,它爲我們提供了手,手指和骨骼的對象。骨骼尤其有幾個屬性,如位置矢量,方向矢量等,請參閱here for the Documentation。 我的想法是取出遠端Phalang(你的