Skip to content

Long0x0/Install-OpenCV-Raspberry-Pi-64-bits

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install-OpenCV-Raspberry-Pi-64-bits

output image

OpenCV installation script for a Raspberry Pi with 64-bits OS

License

This is the full setup of OpenCV for the Raspberry Pi 64-bits.
For more information see Q-engineering - Install OpenCV Raspberry Pi


Installing OpenCV.

You must have allocated enough memory, otherwise the compilation, unfortunately, crashes after 2 hours at 100%

# check your total memory (RAM + swap) first. You need at least a total of:
# OpenCV 4.5.2 -> 6.5 GB!
# OpenCV 4.5.1 -> 5.5 GB
# OpenCV 4.5.0 -> 5.5 GB
# if not, enlarge your swap space as explained in the guide
$ free -m

$ wget https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-64-bits/raw/main/OpenCV-4-5-x.sh
$ sudo chmod 755 ./OpenCV-4-5-x.sh
$ ./OpenCV-4-5-x.sh

👉 Don't forget to reset your swap memory afterwards.


If you want to beautify OpenCV with the Qt5 GUI you need to

  • $ sudo apt-get install qt5-default
  • Set the -D WITH_QT=ON \ (± line 54) in the script

before running the script on your RPi

About

OpenCV 4.5 installation scripts for Raspberry Pi with 64-bit OS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%