Git Product home page Git Product logo

Comments (12)

r9y9 avatar r9y9 commented on May 23, 2024 1

@evancloutier I'm grad to hear that your problem fixed. I will probably add bounds checking into some methods, thanks!

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

If you are using the release version of pylibfreenect2 (v0.1.1), it doesn't support getPointXYZ. Please try the latest master of pylibfreenect2 and libfreenect2.

from pylibfreenect2.

evancloutier avatar evancloutier commented on May 23, 2024

@r9y9 Is it mandatory to update the libfreenect2 branch to interface with your new master branch? I'm having the same issue of this endpoint being unavailable.

from pylibfreenect2.

evancloutier avatar evancloutier commented on May 23, 2024

@r9y9 To follow up on this, I've gotten the getPointXYZ method to work, but am getting a tuple consisting of (nan, nan, nan) when calling from my own class. However, when I use your multiframe_listener.py example, I'm able to get XYZ coordinates.

Do you have any idea as to why this might be? I've followed that example very closely, but cannot find the root of the issue.

Kinect class: https://github.com/evancloutier/490-virtual-piano/blob/key-class/Controller/Kinect/Kinect.py

Main class (where I am calling getPointXYZ): https://github.com/evancloutier/490-virtual-piano/blob/key-class/Controller/Main.py

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

@evancloutier libfreenect2 v0.2.0 is actually enough, but no problem with the master branch since I'm testing against it as well. For the (nan, nan, nan), I assume you are getting zero or nan in depth? NaN can be happen in depth. See OpenKinect/libfreenect2#780 for the related issue.

from pylibfreenect2.

evancloutier avatar evancloutier commented on May 23, 2024

@r9y9 When I replicate your multiframe_listener.py example, I'm able to get non-zero values for depth while streaming from my Kinect v2. However, when I implement the same methods within my own Kinect class, the values become (nan, nan, nan). When I display the registration, there is nothing visually incorrect with the frames either.

Running your example tells me that there are readable depth values there, but my own implementation isn't picking them up for some reason. Any ideas?

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

https://github.com/evancloutier/490-virtual-piano/blob/af4db63cf6e818d3a299076bf2c1593744ba4bed/Controller/Main.py#L28 Why do you specify 960, 540 for row and col indices? Depth image size is 512x424 so It's out of bound.

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

Forgot to mention, @evancloutier (in case you didn't notice, sorry if not)

from pylibfreenect2.

evancloutier avatar evancloutier commented on May 23, 2024

@r9y9 That fixed it - wasn't paying attention to the bounds. Thanks!

from pylibfreenect2.

evancloutier avatar evancloutier commented on May 23, 2024

@r9y9 I was looking at the libfreenect2 implementation of the Registration, and was wondering if you wrapped all of the internal methods of the registration?

I'm looking at this particular method for converting a depth point to color point, used by the apply method, which can be found here.

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

@evancloutier No, only public APIs are wrapped. Internal classes/methods are hidden in implementation. If you think the particular method is useful, you can request libfreenect2 community to expose it.

from pylibfreenect2.

r9y9 avatar r9y9 commented on May 23, 2024

I think this can be closed. Feel free to reopen if you still have an issue.

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.