Power[Shell]Kinect

Today's project might not be one that is used often, but it's fun and not something I believe I've seen before... Then again, who wouldn't want to power their automation with PowerShell and the Kinect? Tongue Out

PowerShell and the Kinect

A few months back I wrote a “module” for scripting the Kinect with PowerShell. It’s located at: https://github.com/adminian/PowerKinect. Recently a new Kinect SDK was released. I’m going to be testing out the new SDK to make sure everything works as expected.

More info about the new SDK: http://blogs.msdn.com/b/kinectforwindows/archive/2013/03/18/the-latest-kinect-for-windows-sdk-is-here.aspx.

Currently there are only two gestures: right hand swipe and left hand swipe. There is also a function that starts PowerPoint and allows you to control your presentation.

Gary Siepser, a fellow PFE and PowerShell Guru, jumped in and started helping out. He’s written the Audio control functions for the module. We’ll be integrating them into the repo soon! I’ll be posting more about Scripting the Kinect, but for now go clone the repo and give it a try!

Project Information URL: http://adminian.com/2013/03/24/powershell-and-the-kinect/

PowerKinect

A module to control the Kinect from PowerShell.

Currently we only support Kinect SDK version 1.6. Download located here: http://go.microsoft.com/fwlink/?LinkID=262831

Sample-KinectScripts.ps1 has a dependency on ShowUI: http://showui.codeplex.com/

The following is PowerKinects Hello world...

Start-Kinect

Enable-SkeletonStream

Add-RightHandGesture -action { notepad }

Add-LeftHandGesture -action { ps notepad | kill }

That's it!

Project Source URL: https://github.com/adminian/PowerKinect

$global:ie = New-Object -ComObject InternetExplorer.Application
$global:ie.GoHome()
$global:ie.Visible = $true
sleep 1
$global:ie.Navigate("http://www.microsoft.com")
sleep 1
$global:ie.Navigate("http://www.adminian.com")
sleep 1
$global:ie.Navigate("http://powershellsaturday.com/003/")
sleep 1

Add-RightHandGesture -action { $global:ie.GoForward() }
Add-LeftHandGesture -action { $global:ie.GoBack() }

Contact Information:

Tags:

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.