openni

kinect/ processing / simple openni - point cloud data not being output properly

空扰寡人 提交于 2019-12-30 05:29:13
问题 I've created a processing sketch which saves each frame of point cloud data from the kinect to a text file, where each line of the file is a point (or vertex) that the kinect has registered. I plan to pull the data into a 3d program to visualize the animation in 3d space and apply various effects. The problem is, when I do this, the first frame seems proper, and the rest of the frames seem to be spitting out what looks like the first image, plus a bunch of random noise. This is my code, in

using opencv waitKey() in a multithreading application

陌路散爱 提交于 2019-12-25 07:17:49
问题 I have a multi-threading application written in C++ with Qt5.7 and OpenNI. It has a main thread that starts a second thread which capture frame from a .oni recording file (asus xtion pro live) does some processing and through the Qt signal-slot mechanism pass the frame to the main thread, which display it using imshow() . What I want to do is to implement a pause key, so pressing for example 'p' the processing pause. I am thinking of something like this: void Camera::run(){ while(!cameraStop

Unresolved external symbol with openCV

梦想的初衷 提交于 2019-12-25 01:56:22
问题 I'm trying to initialize OpenNI sensors using OpenCV in order to get depth map from depth sensor of my kinect. The code I used to get one depth image: and The output I get: LNK2019: unresolved external symbol "int __cdelc cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) reference in function _main In the .pro file I have: QT += widgets WITH_OPENNI = ON 来源: https://stackoverflow.com/questions/16038602/unresolved-external-symbol-with-opencv

Creating a UserTracker crashes in NITE2 python bindings

China☆狼群 提交于 2019-12-23 19:25:21
问题 I am trying to use OpenNI2 and NITE2 python bindings. I'm under Windows 7 and I have Kinect SDK1.8, OpenNI 2.2 and NITE 2.2 working without problems in Visual C++ with their 32 bits versions. I have python 2.7.5 32 bits. Now, my intention is to translate some of the examples provided in NITE to python, but I still haven't found how to create a UserTracker without the program crashing (the same goes for HandTracker). I have been able to run the toy example provided (which doesn't make use of

3D Mapping depth to RGB (Kinect OpenNI Depthmap to OpenCV RGB Cam)

北慕城南 提交于 2019-12-23 04:49:22
问题 i'm trying to map my OpenNI (1.5.4.0) Kinect 4 Windows Depthmap to a OpenCV RGB image. i have the Depthmap 640x480 with depth in mm an was trying to do the mapping like Burrus: http://burrus.name/index.php/Research/KinectCalibration i skipped the distortion part but otherwise i did everything i think: //with depth camera intrinsics, each pixel (x_d,y_d) of depth camera can be projected //to metric 3D space. with fx_d, fy_d, cx_d and cy_d the intrinsics of the depth camera. P3D.at<Vec3f>(y,x)

Kinect 3D gesture recognition based on skeleton movements - What libraries exist?

蓝咒 提交于 2019-12-21 17:11:40
问题 What gesture recognition libraries (if any) exist for the Kinect? Right now I'm using OpenNI to record skeleton movements but am not sure how to go from that to triggering discrete actions. My problem might be as simple as pose detection but it could also be as complicated as time based movements (ie. detect when they are moving their hand in a circle) depending on how difficult that is. The examples that I've seen for pose detection have been very ad-hoc - is this because a generic algorithm

Openni2 reading recording (.oni) in the wrong order

允我心安 提交于 2019-12-12 10:20:58
问题 I am having issues with reading a recording I made using the Recorder class in openni2 with the asus Xtion PRO LIVE. The problem is that once every ~50 frames a wrong frame is read from the recording, this was tested by storing the generated image (converted to an opencv matrix) as an .png image (using the opencv imwrite function) with an index. Shown below is my code, I also tried the code posted in the "OpenNI2: Reading in .oni Recording" question. This also doesnt work. The videostreams,

Loading ONI: Can’t create any node of the requested type

五迷三道 提交于 2019-12-12 04:18:42
问题 I am working on OpenFrameworks with the addon ofxOpenNI by gameoverhack. I got the addon successfully running on my Mac OS X El Capitan 10.11.2 with xCode 7.2. For those of you who have previously used this addon, you must be knowing that there are several examples provided with the addon, including one with simple ONI recording. I had an old ONI file recorded on my linux system and I tried to run it on the OS X installation. I got the following errors: [notice ] ofxOpenNIDevice[1]: Starting

OpenCV with OpenNI on Android Device

倖福魔咒の 提交于 2019-12-12 04:07:43
问题 TL;DR In Android Studio using the Java version of OpenNI, the following line of code deletes OpenNI frame data and I don't know how to put processed data back into the same VideoFrameRef or how to process it with OpenCV: byte[] fb = frameBuffer.array(); where frameBuffer is of type ByteBuffer. Can somebody show me how to do so, or how to simply compile OpenCV with OpenNI support so I can do all the initialization etc in C++ before sending processed data back to Java to be displayed? Edit The

OpenNI 1.5::Could not run code from documentation

落花浮王杯 提交于 2019-12-11 14:57:44
问题 I am trying to run a sample code from the OpenNI 1.5 documentation.I have imported the library required XnCppWrapper.h so that I can use C++.The code has only one error on a particular variable "bshouldrun".I know that it should be declared as something but since I am new at this and the documentation does not contain anything above the main, I dont know what to declare it as..Please help!! And thanks in advance. #include <XnOpenNI.h> #include <XnCppWrapper.h> #include <stdio.h> int main() {