openni

Is there a way to obtain USB port IDs via Win32 API?

一个人想着一个人 提交于 2021-01-29 08:05:58
问题 I am in need of a way to obtain the IDs of the USB ports (if they exist) in a project I am working on. What we are trying to do is to connect some Asus depth cameras to a Windows-computer by using USB ports and in our application, which makes use of these cameras,to uniquely identify a camera because each camera has some specific information generated for it (some transformation matrices, etc.) and to reload this information for each camera, when we disconnect and reconnect the cameras to the

Possible to change AlternateViewPointCap or MirrorCap from playback

倾然丶 夕夏残阳落幕 提交于 2020-01-16 05:02:25
问题 I am working with some data that another person recorded using the OpenNI recorder module. Unfortunately, they accidentally set the mirrored capability as on during their recording, so I am having a few problems 1. mirroring the depth using MirrorCap and 2. aligning the depth with the rgb using AlternateViewPointCap. I tried accessing these capabilities from my depth node as follows: xn::Context ni_context; xn::Player player; xn::DepthGenerator g_depth; xn::ImageGenerator g_image; ni_context

Unhandled exception when using std::mutex instead of boost::mutex

荒凉一梦 提交于 2020-01-13 08:06:08
问题 I try to get rid of some of the boost dependencies in my code and instead use the new C++11 features (Visual Studio 2013). In one of my components I used boost::mutex together with boost::lock_guard<boost::mutex> and everything worked fine. When I use std::mutex together with std::lock_guard<std::mutex> instead, I get the following error when returning from main() . Unhandled exception at 0x7721E3BE (ntdll.dll) in GrabberTester.exe: 0xC0000005: Access violation reading location 0xA6A6B491.

openNI驱动控制kinect马达

与世无争的帅哥 提交于 2020-01-12 08:06:08
Kinect驱动中,笔者最喜欢使用的就是OpenNI驱动,主要原因就是开源,提供更多的数据(有空写一个两个驱动的对比,当然网上也早有类似的对比,但还是不够全面,也过期了 http://www.cnblogs.com/TravelingLight/archive/2011/06/20/2085149.html ,比如:Nite的最新版本中,不需要“投降姿势”就可以立刻获得skeleton的数据)。但相比于MS kinect SDK,它还有一个重要的缺点:没有提供控制kinect马达旋转的接口。于是,笔者在控制kinect俯仰旋转时,只能不停在两家版本的sdk中切来切去,或者有时懒得切驱动,直接手动暴力旋转,甚是麻烦。 今日偶见google group的openni-dev上Nicolas Tisserand的一枚神帖: Hit me “Easy way to control Kinect motor through OpenNI”。文中他成功的使用XnUSB.h(OpenNI头文件之一)完成马达的控制,他把kinect motor封装成一个类再操作,有冗余的发送控制信息的代码,只能在kinect没有初始化打开的情况下工作,无法在摄像头已打开的情况下工作,故修改见如下函数: 1 #include <XnUSB.h> 2 bool _isOpen = false; 3 4 bool

How to Display a 3D image when we have Depth and rgb Mat's in OpenCV (captured from Kinect)

北慕城南 提交于 2020-01-10 02:09:11
问题 We captured a 3d Image using Kinect with OpenNI Library and got the rgb and depth images in the form of OpenCV Mat using this code. main() { OpenNI::initialize(); puts( "Kinect initialization..." ); Device device; if ( device.open( openni::ANY_DEVICE ) != 0 ) { puts( "Kinect not found !" ); return -1; } puts( "Kinect opened" ); VideoStream depth, color; color.create( device, SENSOR_COLOR ); color.start(); puts( "Camera ok" ); depth.create( device, SENSOR_DEPTH ); depth.start(); puts( "Depth

How can I get past a “Library not loaded:” issue?

血红的双手。 提交于 2020-01-05 11:33:39
问题 I started playing with the Kinect and I would like to use skeleton tracking using OpenNI. Since my knowledge of c++ is limited, the easiest option is to use the ofxOpenNI addon for OpenFrameworks. I've downloaded the addon, and successfully compiled the example, but the application can't load a dylib: [Session started at 2011-02-24 11:46:27 +0000.] dyld: Library not loaded: @executable_path/./../../../data/openni/lib/libnimCodecs.dylib Referenced from: /Users/george/Downloads/FirefoxDownloads

How can I get past a “Library not loaded:” issue?

痴心易碎 提交于 2020-01-05 11:31:03
问题 I started playing with the Kinect and I would like to use skeleton tracking using OpenNI. Since my knowledge of c++ is limited, the easiest option is to use the ofxOpenNI addon for OpenFrameworks. I've downloaded the addon, and successfully compiled the example, but the application can't load a dylib: [Session started at 2011-02-24 11:46:27 +0000.] dyld: Library not loaded: @executable_path/./../../../data/openni/lib/libnimCodecs.dylib Referenced from: /Users/george/Downloads/FirefoxDownloads

CMAKE can't find OpenNI

时光毁灭记忆、已成空白 提交于 2020-01-03 09:07:21
问题 I’ve been trying to run the “tutorial to get started” with the Kinect libraries (http://nicolas.burrus.name/index.php/Research/KinectUseNestk) but I stumbled across an error. When I try the following line in the CLI: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. I get the following error: CMake Error at D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHan dleStandardArgs.cmake:91 (MESSAGE): Could NOT find OpenNI (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIR) Call Stack (most recent

OpenNI Intrinsic and Extrinsic calibration

天大地大妈咪最大 提交于 2020-01-02 05:43:05
问题 How would one extract the components of the intrinsic and extrinsic calibration parameters from OpenNI for a device such as the PrimeSense? After some searching I only seem to find how to do it through ROS, but it is not clear how it would be done with just OpenNI. 来源: https://stackoverflow.com/questions/41110791/openni-intrinsic-and-extrinsic-calibration

OpenCV OpenNI calibrate kinect

那年仲夏 提交于 2019-12-31 03:03:23
问题 I use home to capture by kinect: capture.retrieve( depthMap, CV_CAP_OPENNI_DEPTH_MAP ) capture.retrieve( bgrImage, CV_CAP_OPENNI_BGR_IMAGE ) Now I don't know if I have to calibrate kinect to have depth pixel value correct. That is, if I take a pixel (u, v) from the image RBG, get the correct value of depth taking the pixels (u, v) from the image depth? depthMap.at<uchar>(u,v) Any help is much appreciated. Thanks! 回答1: You can check if registration is on like so: cout << "REGISTRATION " <<