Is something wrong with this example?

Jan 17, 2012 at 8:43 PM

I'm testing with new pykinect samples and this one [1] that renders the skeletons on top of the video or depth cameras and lets you modify the camera elevation. The Skeleton works fine with the video but it's mirrored with the depth view (left arm is right arm in the image and so on) 

Is something wrong with the sample? How can I correct it?

[1]  https://hg01.codeplex.com/pytools/raw-file/76d5a3d3bf67/Release/Product/Python/PyKinect/PyKinect/PyGameDemo.py 

-- lm

Coordinator
Jan 17, 2012 at 8:54 PM

I'll have to take a look at this - I'm guessing we need to flip one of the views, or are rendering it incorrectly.  It's going to take me a couple of days to get to it as we're having horrible whether and my Kinect is in the office :(  I'm going to open an issue so it doesn't get lost.

Coordinator
Jan 17, 2012 at 8:54 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jan 20, 2012 at 8:34 PM
2012/1/17 dinov <notifications@codeplex.com>:
> From: dinov
>
> I'll have to take a look at this - I'm guessing we need to flip one of the
> views, or are rendering it incorrectly.  It's going to take me a couple of
> days to get to it as we're having horrible whether and my Kinect is in the
> office :(  I'm going to open an issue so it doesn't get lost.
>

I think the matter is with depth/infrared cameras. The same funcion
memcopy data from rgb and infrared camera, but bytes organization is
different, isn't it?

Regards,

-- lm (@lmorillas)

> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe or change your settings on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Jan 21, 2012 at 2:55 PM
2012/1/20 Luis Miguel Morillas <morillas@gmail.com>:
> 2012/1/17 dinov <notifications@codeplex.com>:
>> From: dinov
>>
>> I'll have to take a look at this - I'm guessing we need to flip one of the
>> views, or are rendering it incorrectly.  It's going to take me a couple of
>> days to get to it as we're having horrible whether and my Kinect is in the
>> office :(  I'm going to open an issue so it doesn't get lost.
>>
>
> I think the matter is with depth/infrared cameras. The same funcion
> memcopy data from rgb and infrared camera, but bytes organization is
> different, isn't it?
>

I realized that I was using an old example and I had to upgrade
pytools for VS because the Kinect API is improved (frame.image.copy
raised an exception). After upgrading PTVS Beta 1.1, I can't import
nui:

>>> import pykinect
>>> from pykinect import nui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python27\lib\site-packages\pykinect\nui\__init__.py", line 16, in <mo
dule>
_NUIDLL = ctypes.CDLL(_nuidll_path)
File "c:\Python27\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] No se puede encontrar el m¾dulo especificado
>>>

MSRKINECTNUI.DLL is installed in C:\Program Files (x86)\Microsoft
Research KinectSDK , buit python module search it at windows\System32
directory (and not all letters caps)


But if path is corrected, execution hangs python:

Traceback (most recent call last):
File "C:\Users\lm\documents\visual studio 2010\Projects\KinectGame1\KinectGame
1\Program.py", line 150, in <module>
kinect = nui.Runtime()
File "C:\Python27\lib\site-packages\pykinect\nui\__init__.py", line 114, in __
init__
raise KinectError('Unable to create Kinect runtime')
KinectError: Unable to create Kinect runtime
Press any key to continue . . .

Any suggestion?

Regards,

-- lm
-- lm
> Regards,
>
> -- lm (@lmorillas)
>
>> Read the full discussion online.
>>
>> To add a post to this discussion, reply to this email
>> ([email removed])
>>
>> To start a new discussion for this project, email
>> [email removed]
>>
>> You are receiving this email because you subscribed to this discussion on
>> CodePlex. You can unsubscribe or change your settings on codePlex.com.
>>
>> Please note: Images and attachments will be removed from emails. Any posts
>> to this discussion will also be available online at codeplex.com
Editor
Jan 21, 2012 at 6:17 PM

You also have to upgrade your Kinect SDK -- PTVS1.1a works with Kinect SDK Beta 1; PTVS 1.1b works with Kinect SDK Beta 2.

http://www.microsoft.com/en-us/kinectforwindows/download/

Jan 22, 2012 at 6:33 PM
2012/1/21 joxn <notifications@codeplex.com>:
> From: joxn
>
> You also have to upgrade your Kinect SDK -- PTVS1.1a works with Kinect SDK
> Beta 1; PTVS 1.1b works with Kinect SDK Beta 2.
>
> http://www.microsoft.com/en-us/kinectforwindows/download/
>

Thanks,

It works after installing Kinect SDK Beta 2.

I want to investigate why the image from depth camera is flipped and
the vga camera works fine if they manage the events with the same
funcions.

-- lm

> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe or change your settings on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Coordinator
Feb 7, 2012 at 6:04 PM

I just checked the depth camera on the RTM SDK and I'm now getting the correct behavior - not sure if it was broken for me on the pre-RTM SDK or not.  I compared it against the normal "Kinect Explorer" SDK sample and we are both displaying the same output (and that output seems to be the same as the non-depth camera).