Git Product home page Git Product logo

Comments (14)

leviresende avatar leviresende commented on June 5, 2024 1

I had the same issue, so I edited the parameters to:

depth_method to opengl
reg_method to cpu

After that, it is working well.

from pylibfreenect2.

JinXiangLai avatar JinXiangLai commented on June 5, 2024 1

I had the same issue, so I edited the parameters to:

depth_method to opengl reg_method to cpu

After that, it is working well.

hi, but I still want to use opencl for registration, any idea?

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

Do you see the error with Protonect?

from pylibfreenect2.

Dagrol avatar Dagrol commented on June 5, 2024

Nope. Protonect works fine. I get that error as soon as I run the examples and any other scripts I wrote which use pylibfreenect2 which were working fine on OSX. I am starting to wonder if it might be a graphics card issue? (I am running ubuntu 14.04 on a macbook pro with amd Radeon HD 8870M)

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

Um, it might be the issue related graphics, but I'm afraid that I don't have a workaround right now. It's worth trying to see which packet processor triggers this; OpenGLPacketPipeline, OpenCLPacketPipeline or CpuPacketPipeline to dig into the problem.

from pylibfreenect2.

Dagrol avatar Dagrol commented on June 5, 2024

I am not 100% sure if it's a graphics card issue. It seems very odd that Protonect works but not this. I might be missing some configuration settings

from pylibfreenect2.

shams3049 avatar shams3049 commented on June 5, 2024

How did you resolve this issue? I am also getting recursively same error.

from pylibfreenect2.

lucas-subli avatar lucas-subli commented on June 5, 2024

Any Solutions ? I am having the same issue!

from pylibfreenect2.

lucas-subli avatar lucas-subli commented on June 5, 2024

./Protonect doesn't present any isssues
./Protonect cl DOES present the same error

Changing from OpenCL to OpenCV seem to have solved the issue

EDIT: As mentioned below by @r9y9 using

from pylibfreenect2 import OpenGLPacketPipeline
pipeline = OpenGLPacketPipeline()

instead of

from pylibfreenect2 import OpenCLPacketPipeline
pipeline = OpenCLPacketPipeline()

Seems to have solved the issue.
(CpuPacketPipeline() also works just fine)

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

@LucasSubli You can switch to CPU or OpenGL packet processor. See:

from pylibfreenect2.

tokyokuma avatar tokyokuma commented on June 5, 2024

I am facing the same problem.
Protonect works normally.
Do you think the problem lies with the GPU?
My PC uses only CPU. Can not I use Kinect V 2 with pylibfreenect with CPU alone?
However,
from pylibfreenect 2 import CpuPacketPipeline
pipeline = CpuPacketPipeline ()
I guess that this is programmed to work with only the CPU

I do not know what to do

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

Well, since I don't have Kinect v2 anymore, it's hard to say what is the real cause of this. Could anybody confirm whether the issue comes from pylibfreenect2 or libfreenect2? According to the #34 (comment), there's something wrong with OpenCL. Does Protonect work even with OpenCL backend?

from pylibfreenect2.

tokyokuma avatar tokyokuma commented on June 5, 2024

I tried
$ ./Protonect gl It works normally
$ ./Protonect cl  It does not work properly, Packet buffer is NULL
$ ./Protonect cpu It works normally

OpenCL doesn't work, but the problem was solved.
I modified the example code(multiframe_listener.py) and tested it.
I made the order of OpenCL the last.

【before】
try:
from pylibfreenect2 import OpenCLPacketPipeline
pipeline = OpenCLPacketPipeline()
except:
try:
from pylibfreenect2 import OpenGLPacketPipeline
pipeline = OpenGLPacketPipeline()
except:
from pylibfreenect2 import CpuPacketPipeline
pipeline = CpuPacketPipeline()

【after】
try:
from pylibfreenect2 import OpenGLPacketPipeline
pipeline = OpenGLPacketPipeline()
except:
try:
from pylibfreenect2 import CpuPacketPipeline
pipeline = CpuPacketPipeline()
except:
from pylibfreenect2 import OpenCLPacketPipeline
pipeline = OpenCLPacketPipeline()

This code worked without problems!
Thank you for your help!

from pylibfreenect2.

r9y9 avatar r9y9 commented on June 5, 2024

@tokyokuma Thank you very much! So there should be something wrong with OpenCL setup. I used OpenCL backend because it was the fastest backend for me, but I changed example code to use the OpenGL backend instead by default.

from pylibfreenect2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.