Giter Site home page Giter Site logo

webcam4openni2's Introduction

WebCam4OpenNI2
==============

The driver of generic webcam for OpenNI 2 to get color VideoStream via OpenCV.

To use this driver module, simply put the precompiled dll file(OpenCVCamera32.dll or OpenCVCamera64.dll) in the folder "\OpenNI2\Drivers". 
(Where should also has PS1080.dll, OniFile.dll and Kinect.dll)

Binary link: https://github.com/KHeresy/WebCam4OpenNI2/tree/master/Binary

Then, you can create the Device and color VideoStream of webcam.

Notice:

1. Most of the middleware libraries are work based on depth map, so this driver module can't make a webcam replace a depth camera.

2. The driver module may has higher priority than OpenNI, so openni::ANY_DEVICE may get a webcam, not Xtion.


==============

User can modify some setting of this driver module by put the file "OpenCVCamera.ini" in the folder where the dll file exists.

The sample of this file: https://github.com/KHeresy/WebCam4OpenNI2/blob/master/OpenCVCamera.ini

1. "device_name" is the prefix of uri. The full URI is the prefix and a number.
For example, the uri of first webcam is "\OpenCV\Camera\1".

2. Set "list_device" as 0 if you don't want to use this device immediately.
The webcam will not been list when call OpenNI::enumerateDevices(), but you still can create the device by specified uri.

3. "max_device_num" is the maximum number of webcam to test.
Need to set this is because some issue of OpenCV.

4. "test_mode" is the resolution that this device may use.
Because OpenCV can't get the support list, so we need to list the modes we want to use.


==============

To build this by youeself, you need OpenNI2 source code and OpenCV

1. https://github.com/OpenNI/OpenNI2

2. http://opencv.org/

Please put the files "OpenCVCamera.cpp" and "OpenCVCamera.vcxproj" in a folder under OpenNI2\Source\Drivers\ (ex: OpenNI2\Source\Drivers\WebCam4OpenNI2), and modify the project setting for OpenCV path.

Although I only test under Windows, but this module should also work under other platforms.

webcam4openni2's People

Contributors

kheresy avatar

Watchers

 avatar  avatar

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.