Skip to content

A wrapper of the famous wrapper called PyKinect2 to use Kinect One with Python

Notifications You must be signed in to change notification settings

gdubrg/wrapperPyKinect2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

wrapperPyKinect2

This is a wrapper of a wrapper, the original wrapper is PyKinect2. This code provides a fast and useful way to immediately use Microsoft Kinect One with Python.

Kinect device -> OS -> SDK Kinect -> PyKinect2 -> wrapperPyKinect2


Prerequisites:

  • PyKinect2 (and all its dependecies, of course)
  • Microsoft Kinect SDK 2.0 (for Kinect One)
  • OpenCV (tested with 2.4.13)

How to

  • acquisitionKinect.py needs a class like frame.py to save data
  • getframe(frame)
  • That's all!

Data acquired

  • Frame number
  • Frame RGB
  • Frame Depth (16 bit)
  • Frame Depth (8 bit)
  • TO DO Skeleton Body Joints

Code sample

from frame import Frame
from acquisitionKinect import AcquisitionKinect
...
kinect = AcquisitionKinect()
frame = Frame()
...
while True:
    try:
        kinect.get_frame(frame)
        if frame.frameDepth is None:
            continue
    except:
        ...

About

A wrapper of the famous wrapper called PyKinect2 to use Kinect One with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages