🚀️ Always up-to-date OpenCV binaries for Raspberry Pi - just download and use it.
⭐ If you find this repository useful, please consider giving it a star.
OpenCV binaries are compiled with the GCC Toolchain targeting older glibc versions, ensuring compatibility across a wide range of Raspberry Pi boards running Raspberry Pi OS 64-bit. GitHub CI workflows are used to automate the build process: pipelines run daily, but new builds are triggered only when a new OpenCV release is available.
- No official OpenCV packages. There are no prebuilt official OpenCV packages for Raspberry Pi OS, forcing users to compile it from source themselves.
- Slow compilation on Raspberry Pi. Building OpenCV directly on a Raspberry Pi can take hours and often runs into the limited RAM available on the device.
- Always up to date. GitHub CI workflows rebuild and publish OpenCV automatically whenever a new version is released upstream.
- No extra dependencies. The required libraries are statically linked, so the OpenCV binaries only depend on the base system libraries already present on Raspberry Pi OS.
- Dynamically linked with an older glibc version. For details, see the GCC Toolchain.
- Statically linked with libstdc++, libgcc, and OpenBLAS.
If you prefer not to build the OpenCV yourself, a precompiled OpenCV can be downloaded from the releases page.
curl -sSLo opencv.deb https://github.com/prepkg/opencv-raspberrypi/releases/latest/download/opencv-aarch64-linux-gnu.deb \
&& sudo apt install -y ./opencv.deb \
&& rm -rf opencv.deb- Git
- Docker
- Clone the repository:
git clone https://github.com/prepkg/opencv-raspberrypi.git && cd opencv-raspberrypi- Build the Docker image:
./setup.sh build-image- Build the library:
./setup.sh build-libAfter compilation, the deb package will be available in the build directory.
- (Optional) Run the test to verify that the library links correctly and the resulting binary runs under QEMU:
./setup.sh test-lib