D455 is not detected in python code
Hardware: RK3588, system Ubuntu 20.04, kernel 5.10.16. During the installation of Intel RealSense SDK 2.0, I encountered an issue where the kernel version was not supported. Therefore, I used the libuvc backend for installation, which was successful. The camera is recognized by the system via the command, but it is not detected by Python code. I have already checked for permission issues. I would like to know what the reason could be.rs-enumerate-devices
-
Hello, have you installed the pyrealsense2 Python compatibility wrapper on your RK3588 computer, please? If you have not then adding the parameter below to line 46 of the libuvc_installation.sh libuvc backend installation script will build the pyrealsense2 wrapper at the same time that RealSense SDK 2.0 (librealsense) is built.
-DBUILD_PYTHON_BINDINGS:bool=true
If you have installed the pyrealsense2 wrapper then please try running your Python program script with sudo admin permissions. For example:
sudo python3 test.py
-
The filenames look okay. 'aarch64' means that pyrealsense2 was built from source code on a computing device with an Arm processor chip (the RK), and 'cpython-310' means that it is being used with Python 3.10.
The change to the pyrealsense2 import instruction is often what fixes the 'pipeline' attribute error.
What happens if you input the command below into the terminal before you run your script?
export PYTHONPATH=$PYTHONPATH:/usr/local/lib
-
thanks,problems is solved by copying those files: pyrealsense2.cpython-310-aarch64-linux-gnu.so,pyrealsense2.cpython-310-aarch64-linux-gnu.so.2.55,pyrealsense2.cpython-310-aarch64-linux-gnu.so.2.55.1 from librealsense/build/release to /usr/lib/python3/dist-packages. By the way,My English is really poor. Thank you again for your understanding and response. Wishing you a pleasant day at work!
Please sign in to leave a comment.
Comments
7 comments