{"id":1027,"date":"2012-06-22T17:49:22","date_gmt":"2012-06-22T09:49:22","guid":{"rendered":"http:\/\/www.magicandlove.com\/blog\/?p=1027"},"modified":"2012-08-07T12:04:49","modified_gmt":"2012-08-07T04:04:49","slug":"kinect-for-windows-in-processing","status":"publish","type":"post","link":"http:\/\/www.magicandlove.com\/blog\/2012\/06\/22\/kinect-for-windows-in-processing\/","title":{"rendered":"Kinect for Windows in Processing 1"},"content":{"rendered":"<p>Finally, I start to work on a Processing library to work with Kinect for Windows SDK. This very preliminary version shows only the colour image and the depth image. For the depth image, I convert the original 13 bit depth map into a PImage for easy display. Both images are of the size 640 x 480.<\/p>\n<p>You can <a href=\"http:\/\/www.magicandlove.com\/software\/PKinect002.zip\">download this<\/a> for a try. It is created in Windows 7 64bit and Java 7. More to work!<\/p>\n<p><iframe loading=\"lazy\" width=\"480\" height=\"360\" src=\"http:\/\/www.youtube.com\/embed\/GHCA3JdVpwY?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>The code is very straightforward.<\/p>\n<pre lang=\"java\">\r\nimport pKinect.PKinect;\r\n\r\nPKinect kinect;\r\n\r\nvoid setup()\r\n{\r\n  size(1280, 480);\r\n  background(0);\r\n  kinect = new PKinect(this);\r\n}\r\n\r\nvoid draw()\r\n{\r\n  image(kinect.GetImage(), 0, 0);\r\n  image(kinect.GetDepth(), 640, 0);\r\n}\r\n\r\nvoid mousePressed()\r\n{\r\n  println(frameRate);\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Finally, I start to work on a Processing library to work with Kinect for Windows SDK. This very preliminary version shows only the colour image and the depth image. For the depth image, I convert the original 13 bit depth map into a PImage for easy display. Both images are of the size 640 x [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[40,62],"class_list":["post-1027","post","type-post","status-publish","format-standard","hentry","category-software-2","tag-kinect","tag-processing-org"],"_links":{"self":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":5,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"predecessor-version":[{"id":1052,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/1027\/revisions\/1052"}],"wp:attachment":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}