Replies: 13 comments 5 replies
-
Hello, is the camera also not detected if the test script below is run?
|
Beta Was this translation helpful? Give feedback.
-
There was a past case where running a pyrealsense2 script in Thonny caused an error but it worked if the script was run from the terminal. |
Beta Was this translation helpful? Give feedback.
-
Which method did you use to install 2.55.1, please? Did you remove the previous installation of the SDK before updating to the current one? |
Beta Was this translation helpful? Give feedback.
-
All package installations of librealsense can be removed with the command below.
If you have only used the git clone installation method though then I believe that you would not have multiple versions of librealsense on your computer because the latest installation would overwrite the previous installation. A RealSense user at #11506 (comment) provided a detailed guide about how they set up librealsense and pyrealsense2 on a Pi 4 with Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
I reinstalled the sdk, the realsense viewer could connect to the camera, I tried running the terminal, and it was the same
…---- Replied Message ----
| From | ***@***.***> |
| Date | 05/20/2024 17:09 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [IntelRealSense/librealsense] In Raspberry Pi 4B,I can use realsense viewer to view the camera, but I cannot call the camera through Python programs, (Discussion #12937) |
All package installations of librealsense can be removed with the command below.
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
If you have only used the git clone installation method though then I believe that you would not have multiple versions of librealsense on your computer because the latest installation would overwrite the previous installation.
A RealSense user at #11506 (comment) provided a detailed guide about how they set up librealsense and pyrealsense2 on a Pi 4 with Ubuntu.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Run in the terminal and cannot connect to the camera
…---- Replied Message ----
| From | ***@***.***> |
| Date | 05/20/2024 17:09 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [IntelRealSense/librealsense] In Raspberry Pi 4B,I can use realsense viewer to view the camera, but I cannot call the camera through Python programs, (Discussion #12937) |
All package installations of librealsense can be removed with the command below.
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
If you have only used the git clone installation method though then I believe that you would not have multiple versions of librealsense on your computer because the latest installation would overwrite the previous installation.
A RealSense user at #11506 (comment) provided a detailed guide about how they set up librealsense and pyrealsense2 on a Pi 4 with Ubuntu.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Which method are you using to install the pyrealsense2 wrapper? |
Beta Was this translation helpful? Give feedback.
-
cd ~/librealsense/build
# for python3
cmake .. -DBUILD_PYTHON_BINDINGS=bool:true -DPYTHON_EXECUTABLE=$(which python3)
make -j1
sudo make install
# add python path
vim ~/.zshrc
export PYTHONPATH=$PYTHONPATH:/usr/local/lib
source ~/.zshrc
| |
15677320737
|
|
***@***.***
|
---- Replied Message ----
| From | ***@***.***> |
| Date | 5/20/2024 20:55 |
| To | ***@***.***> |
| Cc | ***@***.***>,
***@***.***> |
| Subject | Re: [IntelRealSense/librealsense] In Raspberry Pi 4B,I can use realsense viewer to view the camera, but I cannot call the camera through Python programs, (Discussion #12937) |
Which method are you using to install the pyrealsense2 wrapper?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Your installation procedure looks fine, though I would recommend using the CMake build command below so that the tools and examples, including the RealSense Viewer, are built in addition to the librealsense SDK.
|
Beta Was this translation helpful? Give feedback.
-
When I run the code: echo "deb [signed by=/etc/opt/keyrings/librealsense. pgp] https://librealsense.intel.com/Debian/apt-repo |
Beta Was this translation helpful? Give feedback.
-
-DFORCE_RSUSB_BACKEND=true is the successor to -DFORCE_LIBUVC=ON but the older command still works. It is okay to use either of them, as both commands will have the same effect. It is not necessary to use these commands (which avoid the need for a patch to be applied to the kernel) but it is recommended to use it on Raspberry Pi boards, as it gives a better chance of a successful installation of the librealsense SDK. Using the sudo apt update package installation method is not suitable for Raspberry Pi as librealsense's Debian packages are designed for use on computers / computing devices with an x86 / x64 chip architecture (like desktop and laptop PCs), whilst Raspberry Pi boards use Arm architecture. The only Arm board that librealsense has special packages for is Nvidia Jetson. Building the SDK from source code should be used on Pi. |
Beta Was this translation helpful? Give feedback.
-
What command should I run in the terminal to build a librealsense from the source code
| |
15677320737
|
|
***@***.***
|
---- Replied Message ----
| From | ***@***.***> |
| Date | 5/21/2024 16:57 |
| To | ***@***.***> |
| Cc | ***@***.***>,
***@***.***> |
| Subject | Re: [IntelRealSense/librealsense] In Raspberry Pi 4B,I can use realsense viewer to view the camera, but I cannot call the camera through Python programs, (Discussion #12937) |
…-DFORCE_RSUSB_BACKEND=true is the successor to -DFORCE_LIBUVC=ON but the older command still works. It is okay to use either of them, as both commands will have the same effect.
It is not necessary to use these commands (which avoid the need for a patch to be applied to the kernel) but it is recommended to use it on Raspberry Pi boards, as it gives a better chance of a successful installation of the librealsense SDK.
Using the sudo apt update package installation method is not suitable for Raspberry Pi as librealsense's Debian packages are designed for use on computers / computing devices with an x86 / x64 chip architecture (like desktop and laptop PCs), whilst Raspberry Pi boards use Arm architecture. The only Arm board that librealsense has special packages for is Nvidia Jetson. Building the SDK from source code should be used on Pi.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
A simple way to build from source on Pi is to run a libuvc build script provided by Intel at the link below. https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md |
Beta Was this translation helpful? Give feedback.
-
In Raspberry Pi 4B,I can use realsense viewer to view the camera,
but I cannot call the camera through Python programs,and it keeps showing No device connected
Beta Was this translation helpful? Give feedback.
All reactions