- Home /
kinect wrapper package: Depth/Color image
hi, I'm using Kinect Wrapper package (http://wiki.etc.cmu.edu/unity3d/index.php/Microsoft_Kinect_-_Microsoft_SDK) and I can't use DisplayDepth or DisplayColor scripts. When I attach DisplayDepth.cs to a cube or a plane it gives me this error:
IndexOutOfRangeException: Array index is out of range.
DepthWrapper.processDepth () (at Assets/Kinect/DepthWrapper.cs:136)
DepthWrapper.pollDepth () (at Assets/Kinect/DepthWrapper.cs:103)
DisplayDepth.Update () (at Assets/Kinect/DisplayDepth.cs:18)
Anyone knows how to do that? thanks
Answer by markpdolby · Nov 27, 2012 at 04:22 PM
Try replacing all of your Kinect files in the Unity project with the ones I have attached to this post. They come from an updated version of the package they did here: http://wiki.etc.cmu.edu/unity3d/index.php/OpenCV_with_Kinect_-_Windows_SDK
hi, thanks for reply :) with your files, it have an "using OpenCvSharp;" but there's no OpenCvSharp. It's really necessary? I have been working with wrapper package and i made a lot of changes on those files to replace it all now. is there a way to replace just the depth script?
Sorry I forgot to remove those bits, yeah you don't need any OpenCV stuff so you can remove all of that. You can just replace the depth wrapper and the display depth scripts and then merge the $$anonymous$$inectSensor script with your current version (Back up your project first just incase), in the new $$anonymous$$inectSensor script the method polldepth() is different along with a few other things so I would just suggest extracting them out and merging them into your current files.
but if I remove "using OpenCV" I get errors because the script uses methods from OpenCV :/ if you can explain it better I'd appreciate thanks
I do have the same problem! Searched 2 days now in the internet for a solution. But it dont worked! Could someone explane how to get this to work? thanks!
Your answer
