pykinect | Python demos and tools for working with kinect data
kandi X-RAY | pykinect Summary
kandi X-RAY | pykinect Summary
This project is now at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pykinect
pykinect Key Features
pykinect Examples and Code Snippets
Community Discussions
Trending Discussions on pykinect
QUESTION
I have a sequences of pngs and corresponding depth files (aligned to the corresponding images) from an external camera.
RGB: 1.png 2.png 3.png etc 150.png
Depth: 1.txt 2.txt 3.txt etc 150.txt
I also have the intrinsics and corresponding camera information in another file called camera.txt.
My goal is to convert these images and depth files to an mkv file in order to utilize the pykinect's body tracker (https://github.com/ibaiGorordo/pyKinectAzure)
So far, I've been able to convert the images and and depth files into an open3D RGBD object. See: http://www.open3d.org/docs/release/python_api/open3d.geometry.RGBDImage.html
I would think we need to run it through the azure kinect reader (https://github.com/isl-org/Open3D/blob/0ec3e5b24551eaffa3c7708aae8630fde9b00e6c/examples/python/reconstruction_system/sensors/azure_kinect_recorder.py#L34), but this seems to open up the camera for additional input.
How can I save this rgbd images to an mkv file format to read in to the pykinect reader? I
...ANSWER
Answered 2021-Dec-16 at 07:58Have you tried:
- Converting the RGBD image into a numpy array :
http://www.open3d.org/docs/latest/tutorial/Basic/rgbd_image.html
- Then converting the numpy array to an mkv file like:
NumPy array of a video changes from the original after writing into the same video
QUESTION
New to pykinect and kinect in general -- trying to simply get a count of bodies currently being tracked. No skeletal or joint data required. Just want to get a running count of bodies currently in frame. I am using a kinect-v2 and pykinect2.
Being more specific, I'm trying to track how many bodies are in frame and the time elapsed since that value changed. (0 people to 1 person, 1 person to 2, etc.) Due to the built examples for pykinect and the way that they loop, this has proven difficult however. The latest attempt (Now updated with the solved code):
...ANSWER
Answered 2021-May-13 at 07:28I found a useful snippet that does what you need within one of the examples provided in the PyKinect2 GitHub repo.
You need to get the body frame, and then count the number of tracked bodies:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pykinect
You can use pykinect like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page