Ethernet Client Server
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples/ethernet_client_server
https://up-shop.org/up-board-series.html
Ethernet Client Server
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples/ethernet_client_server
https://up-shop.org/up-board-series.html
cmake .. -DBUILD_EXAMPLES=false -DBUILD_GRAPHICAL_EXAMPLES=false -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false -DBUILD_PYTHON_BINDINGS=true -G Unix\ Makefiles -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 |
https://opencv.org/releases/
https://pypi.org/search/?q=opencv
pip install scikit-build
https://www.geeksforgeeks.org/how-to-install-opencv-4-on-macos/
Install homebrew if you don't already have it.
Install tools required to compile RealSense Libraries.
brew install cmake libusb pkg-config
Compile and install Intel RealSense libraries.
git clone https://github.com/IntelRealSense/librealsense to clone librealsense
cd librealsense (or cd into wherever you cloned)
mkdir build && cd build
cmake .. -DBUILD_EXAMPLES=true -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false -DBUILD_PYTHON_BINDINGS=true -G Unix\ Makefiles -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH="/usr/local/lib" -DPYTHON_EXECUTABLE=$(which python3)
make -j4
sudo make install
Distribute libraries to Python site-packages
cp wrappers/python/pyrealsense2.2.50.0.cpython-310-darwin.so $(dirname $(dirname $(which python3)))/lib
cp wrappers/python/pybackend2.2.50.0.cpython-310-darwin.so $(dirname $(dirname $(which python3)))/lib
cd $(dirname $(dirname $(which python3)))/lib/ && ln -s pyrealsense2.2.50.0.cpython-310-darwin.so pyrealsense2.2.cpython-310-darwin.so
cd $(dirname $(dirname $(which python3)))/lib/ && ln -s pyrealsense2.2.50.0.cpython-310-darwin.so pyrealsense2.cpython-310-darwin.so
cd $(dirname $(dirname $(which python3)))/lib/ && ln -s pybackend2.2.50.0.cpython-310-darwin.so pybackend2.2.cpython-310-darwin.so
cd $(dirname $(dirname $(which python3)))/lib/ && ln -s pybackend2.2.50.0.cpython-310-darwin.so pybackend2.cpython-310-darwin.so
https://dev.intelrealsense.com/docs/python2
https://github-wiki-see.page/m/acrobotic/Ai_Demos_RPi/wiki/Raspberry-Pi-4-and-Intel-RealSense-D435
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install automake libtool vim cmake libusb-1.0-0-dev libx11-dev xorg-dev libglu1-mesa-dev
Advanced Options
menu entry, and select yes to rebooting:sudo raspi-config
CONF_SWAPSIZE=2048
:sudo vi /etc/dphys-swapfile
sudo /etc/init.d/dphys-swapfile restart swapon -s
udev
rule:cd ~
git clone https://github.com/IntelRealSense/librealsense.git
cd librealsense
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo su
udevadm control --reload-rules && udevadm trigger
exit
.bashrc
file:export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
source ~/.bashrc
protobuf
— Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data:cd ~
git clone --depth=1 -b v3.10.0 https://github.com/google/protobuf.git
cd protobuf
./autogen.sh
./configure
make -j1
sudo make install
cd python
export LD_LIBRARY_PATH=../src/.libs
python3 setup.py build --cpp_implementation
python3 setup.py test --cpp_implementation
sudo python3 setup.py install --cpp_implementation
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=3
sudo ldconfig
protoc --version
libtbb-dev
parallelism library for C++:sudo apt install -y
libtbb-dev
librealsense
:cd ~/librealsense
mkdir build && cd build
cmake .. -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release -DFORCE_LIBUVC=true
make -j1
sudo make install
pyrealsense2
Python bindings for librealsense
:cd ~/librealsense/build
cmake .. -DBUILD_PYTHON_BINDINGS=bool:true -DPYTHON_EXECUTABLE=$(which python3)
make -j1
sudo make install
.bashrc
file:export PYTHONPATH=$PYTHONPATH:/usr/local/lib
source ~/.bashrc
OpenGL
:sudo apt-get install python-opengl
sudo -H pip3 install pyopengl
sudo -H pip3 install pyopengl_accelerate==3.1.3rc1
OpenGL
):sudo raspi-config
"7. Advanced Options" – "A8 GL Driver" – "G2 GL (Fake KMS)"
VNC
:"3. Boot Options" – "B1 Desktop/CLI" – "B4 Desktop Autologin"
"5. Interfacing Options" – "P3 VNC" – "Yes"
"7. Advanced Options" – "A5 Resolution" – "DMT Mode 85 1280X720 60Hz 16:9"
Select "Finish" on the raspi-config
menu, and select "Yes" to rebooting
Install a VNC client on another computer, for example VNC Viewer by RealVNC
VNC into the Raspberry Pi and run the built-in viewer from a terminal window:
realsense-viewer
pi@raspberrypi:~ $ realsense-viewer
Could not initialize offscreen context!
There is a difference between running vncserver from the terminal and using raspi-config to install it. So, if you see the below output you're doing it wrong:
pi@raspberrypi:~ $ glxgears -info
GL_RENDERER = llvmpipe (LLVM 9.0.1, 128 bits)
GL_VERSION = 3.1 Mesa 19.3.2
GL_VENDOR = VMware, Inc.
Output known to be working:
GL_RENDERER = V3D 4.2
GL_VERSION = 2.1 Mesa 19.3.2
GL_VENDOR = Broadcom
The process to make the necessary changes is described in raspberrypi/Raspberry-Pi-OS-64bit#21 and raspberrypi/Raspberry-Pi-OS-64bit#3. It comes down to how we run vncserver
, running it from a Putty terminal uses a VMware driver, whereas running it via sudo raspi-config
> interfacing options
> vncserver
> enable
and directly login from the VNC client app then uses the necessary Broadcom driver.
pi@raspberrypi:~ $ realsense-viewer
GLFW Driver Error: GLX: GLX version 1.3 is required
Could not initialize offscreen context!
Follow the steps described in IntelRealSense/librealsense#7343.