Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outputting no frames or data to screen. [URGENT] #85

Open
RoboFinley opened this issue Nov 19, 2020 · 6 comments
Open

Outputting no frames or data to screen. [URGENT] #85

RoboFinley opened this issue Nov 19, 2020 · 6 comments

Comments

@RoboFinley
Copy link

I am trying to run the examples given. When I run PyKinectBodyGame I get no errors and the lights on the Kinect (Xbox One version) turn on but it doesn't detect any frames or output anything to the pygame window. I also get an error while running the PyKinectInfraRed example, an error stating AttributeError: 'PyKinectRuntime' object has no attribute 'infrared_frame_desc'.

I did have to make a change to line 2216 in the PyKinectV2, changing thesizeof(tagSTATSTG) == 72 to a <=, I also changed line 154 in PyKinectRuntime, changing the .clock() to a .process_time() because clock() is no longer supported as it was returning an error.
The Kinect does work as it does show output using Kinect Studio. Am I missing something?
I am using the pycharm IDE and have downloaded pykinect2 through the python interpreter settings section, I have also tried downloading directly from github using the easy_install and the version still seems to be 0.1.0. This not only doesnt fix anything, it also means I cant make changes to the PyKinectRuntime file to solve the clock() error anymore as it is saying it has failed to make it writable.

If I have not given some information needed to answer my question please let me know and I will add it in.

Thank you in advance for your help.

@ukasu
Copy link

ukasu commented Jan 7, 2021

I have same problem. There no frames or data in pygame window. I'm getting the self._kinect.has_new_color_frame() as a False value in 136. line of example file . Why?

@WangXingfang
Copy link

I have the same problem. Do you have a solution?

@ukasu
Copy link

ukasu commented Jan 7, 2021

I checked in has_new_color_frame function in PyKinectRuntime.py
When I run the example I seen that self._last_color_frame_time and self._last_color_frame_access value are the same.
In IF-ELSE block it has to be self._last_color_frame_time bigger than self._last_color_frame_access. Otherwise the block return false and there is no data or screen in program

@ukasu
Copy link

ukasu commented Jan 7, 2021

I solved the problem. The solution is that replace all time.clock() to time.perf_counter() in PyKinectRuntime.py

2021-01-07 16_00_43-E__PythonExample_kinect py

@WangXingfang
Copy link

I solved the problem. The solution is that replace all time.clock() to time.perf_counter() in PyKinectRuntime.py

2021-01-07 16_00_43-E__PythonExample_kinect py

Got it! Thank you very much.

@mamoonik
Copy link

mamoonik commented Aug 8, 2022

need help with this issue!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants