I understand OpenNI is a bit out of date. But did’t find a better way for skeleton tracking.
After a few painful days, finally managed to get Kinect work on mac with Openframeworks(OF0.9.8, High Sierra 10.13.4) Didnt succeed with OF 0.10
The hand tracking is neat. Skeleton tracking is working, but the issue I am having is every time I go out of the picture, I cant be redetected when I go back. The detection only gives one shot for each run. This is a real pain for me, I have to rerun the app if I need to change the user. But the hand tracking is always there, even if I go to take a piss and come back.
I assume I have something to do with MaxNumUsers or getNumTrackedUsers… But did’t work out.
Can someone please help on this?
Thanks so much.
Or any better solution for Head Tracking? I know OpenCV would do that job, but I need it to work in dark and also a wider detecting range is preferred.
Hi,
as you correcly say, OpenNI is super outdated. I have not used it on a mac for a long while, and even I dont remember how to fix the problems you are facing, although I can recall that I had to go through those at some point.
My advice to you is to run Windows and use the kinect sdk. it runs much better than openNi, specially if you use the kinect v2. OpenFrameworks runs very nicely with VisualStudio too.
If you insist on using OpenNi, there are several addons for it, as well as the openNi and Nite versions. Make sure you have the newest ones. as for the addons I remember that ofxNI2 was really good. check out in ofxaddons.com for all the available addons
well yes. it is old stuff.
add to run script stuff you should add it to the xcode project configuration. clic on the xcode right pane, above the project files there is a blue icon with the project name. clic on it. From the main panel select “build Phases”. There is a plus sign, clic on it and choose to add a new run script phase. There you should paste thaat stuff,
Yours is so cool, so easy to add and build.
But I still have the same issue, the first detection is instant.
But once I lost my detection, can not be redetected.
Hi, those are related to the file system. I dont use High Sierra so I cant tell. But certainly you are missing the ./NiTE2/s.dat file. I think that that one should be in the same directory as the executable, which I guess is /Users/bian/Documents/of_v0.9.8_osx_release/apps/myApps/NI2test/bin/NI2test.app/Contents/MacOS/