Skip to content

Commit

Permalink
fix Leap Motion import, update dependencies (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanschneeweiss authored Jun 20, 2022
1 parent 9e3f731 commit e93644e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Plug in the Leap Motion Controller and make a recording of the right hand

**Windows**

* Install python (3.8.8) i.e. from
* Install python (3.9.13) i.e. from

https://www.python.org/downloads/
* Add python to system path during setup or follow the following instructions:
Expand All @@ -75,15 +75,15 @@ python app/main.py

---
Following python packages and versions were tested:
* _Gooey_ (1.0.8)
* _AnyPyTools_ (1.4.6)
* _Gooey_ (1.0.8.1)
* _AnyPyTools_ (1.7.8)
* _Matplotlib_ (3.3.3) (only for AnyBody results)
* _Numpy_ (1.19.5)
* _Pandas_ (1.1.5)
* _pywin32_ (300) (only for window size automation)
* _pywinauto_ (0.6.6) (only for window size automation)
* _pywin32_ (301) (only for window size automation)
* _pywinauto_ (0.6.8) (only for window size automation)
* _Scikit-learn_ (0.23.2) (only for BVH animation)
* _wxPython_ (4.1.0)
* _wxPython_ ([4.1.2a1.dev5330+3e6be81d](https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.2a1.dev5330+3e6be81d-cp39-cp39-win_amd64.whl))

## Credits
* https://github.com/chriskiehl/Gooey
Expand Down
3 changes: 1 addition & 2 deletions app/AnyPy.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ def run(self):
os.chdir(self.any_path)
app = AnyPyProcess()

self.output = app.start_macro(macrolist=self.macrolist,
logfile=AnyPy.LOG_FILE)
self.output = app.start_macro(macrolist=self.macrolist)

# change back to original folder
os.chdir(cwd)
Expand Down
2 changes: 1 addition & 1 deletion app/GuiControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self):
self.recorder_dlg = None

def set_windows_record(self):
self.visualizer = Application().start(r"C:\Program Files\Leap Motion\Core Services\Visualizer.exe")
self.visualizer = Application().start(r"C:\Program Files\Ultraleap\TrackingVisualizer\TrackingVisualizer.exe")
self.visualizer_dlg = self.visualizer.window()
self.recorder = Application().connect(class_name="wxWindowNR")
self.recorder_dlg = self.recorder.window()
Expand Down
2 changes: 1 addition & 1 deletion app/LeapData.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from config.BasisFirstFrame import BasisFirstFrame
from resources.pymo.pymo.data import MocapData
from RotationUtil import rot2eul, get_order
from resources.LeapSDK.v41_python38 import Leap
from resources.LeapSDK.v53_python39 import Leap


class LeapData:
Expand Down
2 changes: 1 addition & 1 deletion app/LeapRecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from threading import Thread

from config.Configuration import env
from resources.LeapSDK.v41_python38 import Leap
from resources.LeapSDK.v53_python39 import Leap
from LeapData import LeapData
from resources.pymo.pymo.writers import BVHWriter as Pymo_BVHWriter
# from resources.b3d.bvh_reader import BVH as B3D_BVHReader
Expand Down
2 changes: 1 addition & 1 deletion app/RotationUtil.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import math

from resources.LeapSDK.v41_python38 import Leap
from resources.LeapSDK.v53_python39 import Leap


def get_order():
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# for Leap Motion recording
matplotlib==3.3.3
numpy==1.19.5
numpy>=1.19.5
pandas==1.1.5
# for simulation
AnyPyTools==1.4.6
AnyPyTools==1.7.8
# for PyMO (bvh animation)
scikit-learn==0.23.2
# for GUI
Gooey==1.0.8
Gooey==1.0.8.1
pywin32==301
pywinauto==0.6.8
wxPython==4.1.0
wxPython>=4.1.0

0 comments on commit e93644e

Please sign in to comment.