How do I start writing or creating an app for leap motion? (python)

余生长醉 提交于 2019-11-30 17:22:18

问题


I have tried googling this, but it is a lot of programming talk i do not necessarily completely understand. All i have done so far is download the SDK for Leap Motion and found that programs can be written with python. which is a programming language i am somewhat familiar with.

From the samples on the SDK it seems it requires a module to start writing that means each leap motion app starts with "import Leap" in python. however i do not have this "Leap" module and I am not sure where to download it.

Pretty much I would like to be able to play around and create some basic apps that can do some simple things, but I am not so sure on how I would actually need to write the program for leap motion and then also how to turn it into an application that can be opened and controlled with the Leap Motion device.


回答1:


To begin, here's the Leap Motion Python documentation overview: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Leap_Overview.html

You can find Leap.py within the LeapSDK/lib/ directory. Review the following link for information about the file structure of the Leap Motion SDK: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Sample_Python_Tutorial.html

Finally, you can find the Leap Motion API documentation here: http://developer.leapmotion.com/documentation/Languages/Python/API/index.html

UPDATE: Leap Motion has changed their documentation location and structure since I originally wrote this reply. The above links no longer work.

As I also no longer develop on Leap Motion's platform, I'm unfamiliar with the various APIs they currently have setup, so I'll avoid making any assumptions and simply leave a link to the documentation's index:

https://developer.leapmotion.com/documentation/index.html?proglang=current




回答2:


There are instructions in the docs for Running the Sample:

https://developer.leapmotion.com/documentation/python/devguide/Sample_Tutorial.html#id26

Which explains the dependencies.



来源:https://stackoverflow.com/questions/17906305/how-do-i-start-writing-or-creating-an-app-for-leap-motion-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!