#!/bin/sh apt update apt install -y cmake g++ wget unzip git ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev cd ./src git clone https://github.com/opencv/opencv.git cd .. mkdir -p ./.build-opencv cd ./.build-opencv cmake ../src/opencv make -j4 make install