Giter VIP home page Giter VIP 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.10.0 -> 6.5 GB!
# OpenCV 4.9.0 -> 6.5 GB!
# OpenCV 4.8.0 -> 6.5 GB!
# OpenCV 4.7.0 -> 6.5 GB!
# OpenCV 4.6.0 -> 6.5 GB!
# OpenCV 4.5.5 -> 6.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-10-0.sh
$ sudo chmod 755 ./OpenCV-4-10-0.sh
$ ./OpenCV-4-10-0.sh

๐Ÿ‘‰ Don't forget to reset your swap memory afterwards.


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

# Bookworm
- $ sudo apt-get install qtbase5-dev
# Other OS
- $ sudo apt-get install qt5-default

# in the cmake list
- 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)

paypal

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

Contributors

ahmedaljendy avatar qengineering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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

64-bit version in 32-bit installer for 4.5.5?

Great work. Just trying to install it now. I noticed that the version in the 32-bit repo says "64-bit" in the echo statements. Is it possible to fix this so it is clear when it is supposed to be used? Thanks!

__atomic_load_8 building issue

Hi,

I have a raspberry pi 4 models with 32-bit OS. I arranged my RAM and SWAP memory before building it. However, I am getting an error called "undefined reference to `__atomic_load_8'". I added the screenshot. I will appreciate your help.

Ekran Resmi 2023-07-18 14 15 06 Ekran Resmi 2023-07-18 14 14 43

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.