Installation
https://github.com/GitwellAnyohub/Real_Sensible_Moseq/blob/master/bash_and_install/install_realsense_sdk_mac_os.sh
https://opencv.org/releases/
Install OpenCV on MAC
https://github.com/IntelRealSense/librealsense/issues/5275
PyPi Packages:
https://pypi.org/search/?q=opencv
pip install scikit-build
https://www.geeksforgeeks.org/how-to-install-opencv-4-on-macos/
Installing pyrealsense2 on MacOS
Install homebrew if you don't already have it.
Step 1
Install tools required to compile RealSense Libraries.
brew install cmake libusb pkg-config
Step 2
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
Step 3
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