opencv

🚀️ Always up-to-date OpenCV binaries for Raspberry Pi - just download and use it.

GitHub Release Downloads License Linux

Install

The command downloads and installs OpenCV as a Debian package.

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

Why?

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.

Supported Platforms

Platform Architectures Notes
Raspberry Pi OS 64-bit aarch64 Dynamically linked with an older glibc version;
statically linked with libstdc++, libgcc, and OpenBLAS.