

For the newer version, just replace the link for the source code zip file.Īnd we also need to install the contribution packages of OpenCV. As of writing this, the latest release is 4.0.1. We suggest that you are at the home folder, so that you don't have to change the code in the next steps. $ sudo apt install tesseract-ocr cmake-data liblept5 $ sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavresample-dev $ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev $ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev Step 2: Install all the recommended packages $ sudo apt install ubuntu-mate-core & sudo apt install ubuntu-mate-desktop If your ROCK Pi 4 is running Ubuntu but without desktop, you can install Ubuntu mate desktop. To use OpenCV, an OS desktop is necessary. To compile OpenCV on ROCK Pi, we need at least 4GB ram and we recommend to compile on ubuntu arm64 images. 1.6 Step6: Do the sample supported by OpenCV official.1.5 Step 5: Test your building and installation.1.2 Step 2: Install all the recommended packages.1.1 Step 1: Get Ubuntu running on ROCK Pi 4.
