{"action":"opened","issue":{"url":"https://api.github.com/repos/shiffman/OpenKinect-for-Processing/issues/82","repository_url":"https://api.github.com/repos/shiffman/OpenKinect-for-Processing","labels_url":"https://api.github.com/repos/shiffman/OpenKinect-for-Processing/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/shiffman/OpenKinect-for-Processing/issues/82/comments","events_url":"https://api.github.com/repos/shiffman/OpenKinect-for-Processing/issues/82/events","html_url":"https://github.com/shiffman/OpenKinect-for-Processing/issues/82","id":168445816,"number":82,"title":"The function initDevice() does not exist","user":{"login":"dtheva","id":7254878,"avatar_url":"https://avatars.githubusercontent.com/u/7254878?v=3","gravatar_id":"","url":"https://api.github.com/users/dtheva","html_url":"https://github.com/dtheva","followers_url":"https://api.github.com/users/dtheva/followers","following_url":"https://api.github.com/users/dtheva/following{/other_user}","gists_url":"https://api.github.com/users/dtheva/gists{/gist_id}","starred_url":"https://api.github.com/users/dtheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtheva/subscriptions","organizations_url":"https://api.github.com/users/dtheva/orgs","repos_url":"https://api.github.com/users/dtheva/repos","events_url":"https://api.github.com/users/dtheva/events{/privacy}","received_events_url":"https://api.github.com/users/dtheva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T03:11:22Z","updated_at":"2016-07-30T03:11:22Z","closed_at":null,"body":"Posting this issue as well as possible resolution.\r\n\r\nRunning Processing 3.1.1 on fresh install of OS X El Capitan (10.11.6)\r\nKinect V1 \r\n\r\nThe following code was obtained from: [Youtube Link from Daniel Shiffman's Coding Rainbow channel](https://www.youtube.com/watch?v=FBmxc4EyVjs)\r\n``` java\r\nimport org.openkinect.processing.*;\r\n\r\nKinect kinect; \r\n\r\nvoid setup()\r\n{\r\n   size(640,480);\r\n   kinect = new Kinect(this);\r\n   \r\n   kinect.initDepth();\r\n   kinect.initDevice();\r\n}\r\n\r\nvoid draw()\r\n{\r\n   background(0);\r\n   PImage img = kinect.getDepthImage();\r\n   image(img, 0, 0);\r\n}\r\n```\r\n\r\nIf you are using a KinectV1 device, the line:\r\n`kinect.initDevice();`\r\nwill throw a \"The function \"initDevice()\" does not exist\" error.\r\n\r\nI suspect this is due to the fact that initDevice() starts up the IR, depth, and video acquisition. Since KinectV1 cannot receive both video and IR simultaneous (something KinectV2 is able to do however), this function call is not applicable to the KinectV1 device.  The line can be omitted (or commented out) and the code should run without any errors. \r\n\r\nHope my reasoning makes sense (and correct).  \r\nI was struggling with this all afternoon and finally made some progress.  \r\n\r\n\r\n"}}
{"actor":{"display_login":"dtheva"}}