How to use the Leap Motion device in Python 3

The Leap Motion device reads hand positions and motions.

To see what the Leap Motion device can do in Python:

  1. Visit the Leap Motion setup page and download the setup file from the WINDOWS DOWNLOAD button.
  2. Run that setup file to install the Leap Motion drivers.
  3. After running the setup file, it probably opens the Leap Motion App Home, which looks like this: .

    If the App Home is not open, open it by executing: C:\Program Files (x86)\Leap Motion\App Home\LeapMotionAppHome.

    Once you have the App Home open, try a demo (e.g. the Playground) to make sure that the device is working correctly.

  4. Download this zip file.
  5. Unzip it, placing its 4 files into the src folder of your project.
  6. Plug in the Leap Motion device (if you have not already done so).
  7. Run the Sample3.py file in the usual way.

After the above, you have the Leap Motion device working. Now, use its API to apply it to your project!