Example Code only in C/C++ how I can use for Python?
Hello community
I have installed the RealSense SDK2.0 software on the Raspberry and it also runs.
Now I wanted to run the Hello-Realsense program.
Which compiler / software do I have to use on the RasperryPi to run this script?
Since I actually program in Python, I wanted a version in this language.
There would be a wrapper. Only I have no idea how to use something like that.
Can someone help me who is familiar with it?
Thank you very much
Greetings
Martin
-
A member of the RealSense community wrote a conversion for Python of the SDK's introductory 'Ready to Hack' code sample for reading distance.
https://forums.intel.com/s/question/0D50P00004F9TLW/d435-distance
Intel also have a Python tutorial article on measuring distance from a pre-recorded 'bag' file.
https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb
In regard to setting up the RealSense SDK's Python wrapper (Pyrealsense2) on a Raspberry Pi: it ca be built from source using the instructions in the link below:
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python#building-from-source
If you encounter problems, some Pi-specific advice for fixing an installation can be found in the links below.
https://github.com/IntelRealSense/librealsense/issues/2500
https://github.com/IntelRealSense/librealsense/issues/4375
Please sign in to leave a comment.
Comments
1 comment