Thursday, March 24, 2011

Kinect Development Example

hi

Here is code for the begainner developer of kinnect it will ask for the input values of led and degree of tilt range(-40,100)

import freenect
import time

def body(dev,ctx):
led_val=input('Please enter a Led value:')
tilt_val=input('Please enter a Tilt value:')
freenect.set_led(dev,led_val)
freenect.set_tilt_degs(dev,tilt_val)
time.sleep(2)
freenect.runloop(body=body)


2 comments:

  1. Hi... thanks your code was very usefull to me.

    I hope you keep on working in this

    see you

    Rafael

    ReplyDelete
  2. Hi

    Thank you for the comments . I will upload few more examples soon

    Have a nice day

    ReplyDelete