Coder Social home page Coder Social logo

install-opencv-raspberry-pi-32-bits's Introduction

Install-OpenCV-Raspberry-Pi-32-bits

output image

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

License

This is the full setup of OpenCV for the Raspberry Pi 32-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.3 -> 6.5 GB!
# 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-32-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


OpenCV will be installed to the /usr/local directory, all files will be copied to following locations:

  • /usr/local/bin - executable files
  • /usr/local/lib - libraries (.so)
  • /usr/local/lib/cmake/opencv4 - cmake package
  • /usr/local/include/opencv4 - headers
  • /usr/local/share/opencv4 - other files (e.g. trained cascades in XML format)

install-opencv-raspberry-pi-32-bits's People

Contributors

qengineering avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.