-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
213ac2c
commit 33dcf1d
Showing
30 changed files
with
294 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
.idea/ | ||
dist/ | ||
venv/ | ||
build/ | ||
src/leap.egg-info | ||
src/leap/leapc/*.h | ||
src/leap/leapc/*.dll | ||
src/leap/leapc/*.lib | ||
src/leap/leapc/*.dylib | ||
src/leap/leapc/*.so | ||
|
||
leapc-python-api/build | ||
leapc-python-api/dist | ||
leapc-python-api/src/leap.egg-info | ||
|
||
leapc-cffi/build | ||
leapc-cffi/dist | ||
leapc-cffi/src/leapc_cffi.egg-info | ||
leapc-cffi/src/leapc_cffi/*.h | ||
leapc-cffi/src/leapc_cffi/*.dll | ||
leapc-cffi/src/leapc_cffi/*.pyd | ||
leapc-cffi/src/leapc_cffi/*.lib | ||
leapc-cffi/src/leapc_cffi/*.dylib | ||
leapc-cffi/src/leapc_cffi/*.so | ||
|
||
*.pyc | ||
*.pyd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include src/leapc_cffi/* | ||
include src/scripts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
CFFI Python Binds For LeapC | ||
=========================== | ||
|
||
Low-level Python bindings for LeapC. These bindings are used by the leap module to interface with the LeapC API. | ||
|
||
A built shared object of this is included in the Gemini Hand Tracking install from v5.17 onwards. However, you can | ||
manually build this if it does not include a shared object for your python version or architecture. | ||
|
||
Below are the instructions on how to compile manually (requiring a C compiler): | ||
|
||
``` | ||
# Create and activate a virtual environment | ||
pip install -r requirements.txt | ||
python -m build leapc-cffi | ||
pip install leapc-cffi/dist/leapc_cffi-0.0.1.tar.gz | ||
pip install -e leapc-python-api | ||
python examples/tracking_event_example.py | ||
``` | ||
|
||
Building Errors | ||
--------------- | ||
|
||
This will try to use the LeapC shared object from your install of Gemini Hand Tracking. This module assumes that you | ||
have the Leap SDK installed in the default location. If this is not the case for you, you can use an environment | ||
variable for define the installation location. Define the environment variable `LEAPSDK_INSTALL_LOCATION` to the path of | ||
the `LeapSDK` folder, if you have installed to a custom location or moved it somewhere else. | ||
|
||
Example: | ||
`export LEAPSDK_INSTALL_LOCATION="C:\Program Files\CustomDir\Ultraleap\LeapSDK"` | ||
|
||
By default, this path is the following for each operating system: | ||
- Windows: `C:/Program Files/Ultraleap/LeapSDK` | ||
- Linux: `/usr/lib/ultraleap-hand-tracking-service` | ||
- Darwin: `/Applications/Ultraleap Hand Tracking.app/Contents/LeapSDK` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.