Giter Club home page Giter Club logo

kinect2-opencv's Introduction

Kinect2 along with OpenCV featuring Tk/Tcl in Action

This repository contains a Python application based on Tk/Tcl to show the interplay between OpenCV and the Kinect 2 (Xbox One) sensor in a comprehensive way. It has a minimalistic and kept simple UI with few widgets, and has been designed with extensibility in mind.

kinect2-opencv

Details

The UI of the application has several views, which are divided categorically:

  • Camera: raw and altered images from RGB camera, IR and depth sensor
  • Tracker: ROI and color trackers
  • 3D: point clouds
  • Depth: denoised depth maps
  • IR: simple filters applied to IR images
  • Features: various feature extractions
  • BackSub: background substractions

Usage

  1. To start and stop streaming, click on the button labeled with the serial number of the Kinect2 device.
  2. Use the mouse wheel to show and toggle grids on top of a view.
  3. Double-clicking on (almost) any view or plot creates a timestamped image in ./capture.
  4. The ROI (an area to track) can be set with the right mouse button directly in the view that supports tracking.

Requirements

The application works at least under GNU/Linux if the following requirements are met:

  • Python 3.7.5, OpenCV 4.1.2, Tcl/Tk 8.6
  • libfreenect2 0.2.0, pylibfreenect 0.1.3, libusb 1.0.23
  • numpy 0.17.4, matplotlib 3.1.2, Pillow 6.1.2

Troubleshooting

LIBUSB_ERROR_ACCESS Access denied (insufficient permissions)

You want to add rules to the userspace device files (udev) to permit access to the Kinect device via USB. Just add the following udev rules to any file in /etc/udev/rules.d and reboot:

SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c4", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d8", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d9", MODE="0666"

Credits

kinect2-opencv's People

Contributors

m6c7l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

simonmssu

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.