Ryuichi Yamamoto
Ryuichi Yamamoto
I guess you forgot to call `listener.release(frames)`? See https://github.com/r9y9/pylibfreenect2/blob/edc796467993319b76d1bda1067f819a85eedefd/examples/multiframe_listener.py#L83.
Can you paste a code so that I can reproduce the issue?
umm, I cannot reproduce the issue.. I used the similar code above: https://gist.github.com/r9y9/c64d4500283f6c33aa150d1e89806af8 (removed `multiprocessing` related things, since I don't have it).
It would be helpful if you can paste a complete log message.
Can you share the complete test codes? I don't have the `multiprocessing` package. Also could you tell me if https://gist.github.com/r9y9/c64d4500283f6c33aa150d1e89806af8 works or not?
You can pass your numpy array to construct a Frame object. See http://r9y9.github.io/pylibfreenect2/latest/api.html#pylibfreenect2.libfreenect2.Frame and https://github.com/r9y9/pylibfreenect2/blob/4bea7cb58798dec75585768cf5a8fb4084813cd1/pylibfreenect2/libfreenect2.pyx#L220-L223.
Code would look like `frame = Frame(512, 424, 4, your_array)`
https://github.com/r9y9/pylibfreenect2/blob/4bea7cb58798dec75585768cf5a8fb4084813cd1/pylibfreenect2/libfreenect2.pyx#L235-L236 As seen in the code, numpy array shoud be 2-dim and of type float32. And bytes_per_pixel should be 4 (float32). Please check your input.
I forgot the frame_type argment. ``` Frame(512, 424,4, FrameType.Depth, depth_test) ```
Oh, oops, I didn't update pypi version for a while. Thanks for pointing out the issue, @JAKD9. I will release a new version soon.