Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nite2.2 not working #6

Closed
pcp16 opened this issue Jan 30, 2019 · 10 comments
Closed

Nite2.2 not working #6

pcp16 opened this issue Jan 30, 2019 · 10 comments

Comments

@pcp16
Copy link

pcp16 commented Jan 30, 2019

Hi using the pypi version but cannot get Nite2 (I have Nite2.2) to work. Using the example in the README.md, it always goes through the except path:

import sys
from openni import openni2, nite2, utils

openni2.initialize()
nite2.initialize()

dev = openni2.Device.open_any()

try:
    userTracker = nite2.UserTracker(dev)
except utils.NiteError as ne:
    logger.error("Unable to start the NiTE human tracker. Check "
                 "the error messages in the console. Model data "
                 "(s.dat, h.dat...) might be inaccessible.")
    sys.exit(-1)
@pcp16
Copy link
Author

pcp16 commented Jan 30, 2019

If using from primesense import ... instead, then I get the error reported here:

https://stackoverflow.com/questions/19962339/creating-a-usertracker-crashes-in-nite2-python-bindings

It is (still) the case that Nite2.2 is not supported? Do I need to downgrade? Are the two issues unrelated?

@pcp16
Copy link
Author

pcp16 commented Jan 30, 2019

Ok, got it working from the fork by hjmr: https://github.com/hjmr/openni-python

Is there any plan to merge his bits here?

@severin-lemaignan
Copy link
Owner

Thanks @pcp16 for pointing out @hjmr changes. I've merged them in this repo, and I'll update ASAP the pip version.

@ccl-private
Copy link

ccl-private commented Jul 3, 2019

hi, I still meet this problem. I download the latest master branch and put them into my python project. color_stream and depth_stream work well. But nite2.UserTracker(dev) failed, try-catching error "NiteStatus.NITE_STATUS_ERROR".
My nite version is 2.2, how to fix this?
I also noticed the message in try-except, "(s.dat, h.dat...) might be inaccessible." I find the two .dat files in .../Redist/NiTE2/. Could it be a configuration error on my part?

@hjmr
Copy link
Contributor

hjmr commented Jul 3, 2019

I don't know if this will be effective but please check "DataDir" in "General" section of .../Redist/NiTE.ini which must specify the directory where the two .dat files is located. It looks like you can use a relative path there but I've never succeeded. I recommend to use an absolute path. Hope it helps.

@ccl-private
Copy link

@hjmr It seems that something else is wrong. I tried an absolute path, but, still, the same error.
My RGBD cameras are ASUS Xtion PRO LIVE and Orbbec Astra. Any ideas?

@hjmr
Copy link
Contributor

hjmr commented Jul 6, 2019

@ccl-private I checked with Structure Sensor from Occipital and Intel D435 on macOS. But I don't think this problem is relating to what camera you are using. What OS did you try on?

@ccl-private
Copy link

@hjmr My os is Ubuntu 18.06.

@ccl-private
Copy link

I tried again on another computer, ubuntu18 too, got a different error.
Screenshot from 2019-07-07 14-39-01
I am sure I have libNiTE2.so file in that directory.
Screenshot from 2019-07-07 14-39-19

My NiTE2 downloaded from http://cvrlcode.ics.forth.gr/web_share/OpenNI/NITE_SDK.

@ccl-private
Copy link

ccl-private commented Jul 8, 2019

Hi, @hjmr. my problem is solved at "#4".
It is because NiTE2 cannot find openni2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants