Python SDK crashing at load_modules

Hi,

I first tried the compatibility and working process of an IntelRealSense D455 with the Windows application and everything worked perfectly from activating the license to running the demo. But when I tried connecting to the same device using Python SDK, the code (the same as provided in the installation doc) suddenly crashed at the load_modules line without any error. It seems the code stops at that point.

Hello, @KooroshRH.

Apologies for the late reply.

We were unable to reproduce your problem. (we have tested it on the latest release v0.37.12.). Could you, please, provide us with the version of Nuitrack you used and the snippet of code? Also, we want to tell you that connection issues (bad cable or USB port) are common for RealSense sensors. In addition, we would recommend you to try to launch the latest version (link) if you havenā€™t already.

Weā€™re sorry you have encountered such an issue. Weā€™re looking forward to feedback.

Hi @gvr,

Thanks for your response.

I used the exact code explained here. I canā€™t find any cause because everything works well with the latest Windows application. The load_modules function doesnā€™t throw any exception I can debug.

Hi, @KooroshRH.

Sorry for the late reply.

Could you, please, tell us about your actions step by step? Also, is your link referring to this code? (itā€™s quite tricky to get there). If not, could you, please, provide us with the exact code snippet? (via link, file, etc.)

Thank you for your interest in Nuitrack. We are eagerly waiting for the feedback.

Hi @gvr,

First, I connect my RealSense camera to the computer and run the Nuitrack desktop application. It works perfectly without any problem, but when I close the application and run the code from the link you sent (itā€™s the exact link I put in my previous response), it crashes at load_modules function without throwing any exceptions, so I canā€™t debug it.

Thanks

Hey, @KooroshRH.

After considerable testing, we canā€™t reproduce your issue. Letā€™s dig a little bit deeper.
Could you, please, describe your workflow as minutely as possible? It would be wonderful if you could include screenshots of console output, code (or a file), and the ā€˜NUITRACK_HOMEā€™ and ā€˜LD_LIBRARY_PATHā€™ environmental variable settings. Also, please provide us with the actions leading to the crash (it would be nice if itā€™s presented in some kind of list). The info we ask for will help us solve your issue as soon as possible.

Thanks for your contribution. Weā€™re looking forward to your response.

Hi @gvr,

Thanks for replying and helping to fix the issue.
Iā€™m using Windows and installed the Python package using the wheels you provided in the GitHub repo (py_nuitrack_windows_python3.9-0.1.0-py3-none-any).

This is the code Iā€™m trying to run completely:
(I canā€™t upload images due to a restriction, please find this image in this drive folder)

And this is the outputs:
(I canā€™t upload images due to a restriction, please find this image in this drive folder)

More precisely, I always connected the RealSense camera using a USB cable to my laptop, then tried it with the Nuitrack desktop application to see if everything was fine or not. Finally, I will run this code using Python 3.9.
For env variables, I have NUITRACK_HOME which is C:\Program Files\Nuitrack\nuitrack\nuitrack, but I donā€™t have LD_LIBRARY_PATH. Maybe this can be the problem.
Looking forward to hearing from you soon.

Thanks,
Koorosh

Hey, @KooroshRH.

but I donā€™t have LD_LIBRARY_PATH

Yes, this is because it is the Path actually. (I typed it wrongly). If you attach it, that will be fantastic.

Thank you for providing the info, we will take it into further testing and inform you about results as soon as possible.

Hey, @KooroshRH.

Apologies for the late reply. The forum was down for some time.

We used the additional info for thorough testing, but we were still unable to replicate your problem. It seems weā€™re still having some differences between setups. As a solution we can suggest you a remote session (via anydesk, for example) to identify the problems. Please, tell us if it suits you. If so, weā€™ll arrange a meeting.

Hi @gvr,

Thatā€™s great, and Iā€™m available for a meeting next week.
Let me know how we can arrange the meeting in detail.

Hello, @KooroshRH.

Hereā€™s the calendar (link) with the available time. Choose the one that suits you best.

Weā€™re eagerly awaiting your response.

Hello, @KooroshRH.

Apologies for the such a long delay.

Is this issue still relevant to you? If so, we have prepared the debug package.
Please reproduce the issue with the above package installed and send us the log.

Weā€™re looking forward to feedback.

Hi @gvr,

Thanks for your message; It seems the package is password-protected, and I donā€™t know it. It would be awesome if you could let me know it.

Hi @gvr,

I tested the new debug package and it was working perfectly. Thanks for your help to fix this problem. I think we can close this thread now, but I have some questions about the python module:

  1. How can I change the AI or Classical mode of the model for extracting joints?
  2. Is it possible for the model to extract joints only using the depth stream of the real-sense camera while the RGB stream is turned off because of privacy issues?
  3. Is it possible to run the model on a .bag file recorded from a real-sense camera instead of a live connection? Because I want to do a data collection and run different models for joint extraction after the data collection is done.
  4. Is there any documentation about the outputs of the model, for example the exact specifications of the ā€œrealā€ dimensions for each joint?

Thanks,
Koorosh

Hello, @KooroshRH.

  1. You can set a config option ā€œSkeletonization.Typeā€ to ā€œCNN_HPEā€ in order to use AI skeletonization.
  2. It is possible to turn off the RGB stream output by setting config option ā€œDepthProvider.RGBā€ to ā€œOffā€.
  3. Yes! It is possible to run realsense bag files through providing config with ā€œRealsense2Module.FileRecord: /path/to/the/file.bagā€. Make sure you have your sensor connected to the PC, otherwise Nuitrack wonā€™t run (current behaviour).
  4. Regarding outputs, hereā€™s the documentation for the skeleton system nuitrack-sdk/doc/Overview.md at master Ā· 3DiVi/nuitrack-sdk Ā· GitHub, and joint struct reference Nuitrack: nuitrack.Joint Struct Reference. Also, if you need more information about Nuitrack, you can check out this page on github.

Feel free to reach out to us if you have any other questions.

1 Like