Install OpenCV 4.1.2 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
Check you can run test.py
using both python 2 and 3 to verify that OpenCV python bindings were successfully installed
$ wget "https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png" -O lenna.jpg
$ python2 test.py lenna.jpg
$ python3 test.py lenna.jpg
WARNING: Users of boards with 1GB of memory
Compiling is very memory intensive, you will likely need to increase your swap size. Assuming you have a reasonably large SD card (>16GB to be safe), follow the procedure below to increase your swap size from the default 100MB to 2GB
$ sudo dphys-swapfile swapoff
$ sudo sed -i 's:CONF_SWAPSIZE=.*:CONF_SWAPSIZE=2048:g' /etc/dphys-swapfile
$ sudo reboot
Hello, thanks for your scripts @willprice.
I just finished the compilation succesfully.... but now i have a trouble.
Scanning dependencies of target example_tapi_clahe
[100%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o
[100%] Linking CXX executable ../../bin/example_tapi_clahe
[100%] Built target example_tapi_clahe
~/opencv/opencv-4.1.2 /home/pi
/home/pi
when i try to change the path
pi@raspberrypi:~ $ cd ~/opencv/opencv-4.1.2/build
bash: cd: /home/pi/opencv/opencv-4.1.2/build: No existe el fichero o el directorio
I searched them in whole system but nothing. it seems like the opencv folders are erased, i followed the scrip without troubles....do you have any idea???
thx.