Jetson Inference Object Detection with Python

Hi, I followed the below link to detect objects with Python. I need to use some python libraries (such as serial) with it but, because of this python code works inside docker/run.sh, I’m not able to import any other libraries. How can I import python libraries? and also I’m wondering is it possible to run this script without using docker/run.sh.
Thanks.

Hi @CostGazelle, you would need to install the Python modules inside the container if they aren’t already. Also, you would want to mount a directory containing your customized version of detectnet.py so that your modifications to it are present inside the container (see here for more info about doing that)

Yes, you can build from source and run the whole project outside of container: https://github.com/dusty-nv/jetson-inference/blob/master/docs/building-repo-2.md

Hi @dusty_nv building from source is solved my problem, now I can use jetson inference libraries and other python libraries without docker thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.