Opencv 4 automated installation script for Raspberry Pi.
- rasp_opencv_remove_legacy.sh
Delete old opencv.
The auto option allows for automatic transition to the next step.
./rasp_opencv_remove_legacy.sh
Only remove Legacy OpenCV.
./rasp_opencv-remove_legacy.sh <you_want_opencv_version> -auto <dep_args>
After deletion, the transition will be made to the following script: rasp_opencv_dependency.sh
<dep_args>
is passed to next script. See the next section for details.
- rasp_opencv_dependency.sh
Install the dependency packages required for opencv4.
You can use the following options:
- -gtk3
- -qt4
- -qt5
- -gl
- -py2
- -py3
- -install
-install
option is same-auto
When you input -install
or -auto
, You must specify the version as the first argument.
Example, ./rasp_opencv_dependency.sh 4.1.2 -auto -py2 -py3 -qt5 -gl
All args is passed to last script.
- rasp_opencv.sh
Download, Install packages, Complie.
If inputclean
, this script will clean up the files used for compilation.
Example, This command./rasp_opencv.sh 4.1.2 -py2 -py3 -qt5 -gl
is only installation.
Command./rasp_opencv.sh clean
is only clean up files.
Theclean
cannot be used-py2...-gtk3
together.