Comments (12)
@evancloutier I'm grad to hear that your problem fixed. I will probably add bounds checking into some methods, thanks!
from pylibfreenect2.
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.
@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.
@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.
@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.
@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.
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.
Forgot to mention, @evancloutier (in case you didn't notice, sorry if not)
from pylibfreenect2.
@r9y9 That fixed it - wasn't paying attention to the bounds. Thanks!
from pylibfreenect2.
@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.
@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.
I think this can be closed. Feel free to reopen if you still have an issue.
from pylibfreenect2.
Related Issues (20)
- Kinect Recording
- Creating Frame from numpy array HOT 2
- Freenect2Device setConfiguration
- Offline RGB/depth registration
- OSError: libfreenect2 library cannot be found HOT 1
- is Raspberry pi 4 support? HOT 6
- How to use cuda to process data? HOT 2
- How to set record frame rate?
- How to flip RGB and depth images ?
- Problem with pip install
- Issues running examples HOT 2
- Timeout only in Python, not in C++ HOT 2
- [Error] connecting three "kinectv2"
- Pylibfreenect2 Setup.py Can't find DLL's HOT 1
- How to align the Color and the Depth
- Running slow when saving the video
- how to get skeletons ?
- ImportError trying to install pylibfreenect2
- recent installs failing? lower your Cython verison
- Gray Images using kinect V2 and libfreenect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylibfreenect2.