{"id":21802454,"url":"https://github.com/qengineering/install-opencv-raspberry-pi-32-bits","last_synced_at":"2025-04-13T18:41:51.067Z","repository":{"id":39871502,"uuid":"376752392","full_name":"Qengineering/Install-OpenCV-Raspberry-Pi-32-bits","owner":"Qengineering","description":"OpenCV 4.11 installation scripts for Raspberry Pi with 32-bit OS","archived":false,"fork":false,"pushed_at":"2025-01-24T16:56:16.000Z","size":119,"stargazers_count":24,"open_issues_count":0,"forks_count":18,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:22:59.001Z","etag":null,"topics":["opencv","opencv-45","raspberry-pi","rpi"],"latest_commit_sha":null,"homepage":"https://qengineering.eu/install-opencv-4.5-on-raspberry-pi-4.html","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qengineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-14T08:19:28.000Z","updated_at":"2025-02-15T07:25:47.000Z","dependencies_parsed_at":"2024-01-28T12:52:51.366Z","dependency_job_id":"648c9b26-3bae-4dbd-bd61-743fd65eb99a","html_url":"https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-32-bits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FInstall-OpenCV-Raspberry-Pi-32-bits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FInstall-OpenCV-Raspberry-Pi-32-bits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FInstall-OpenCV-Raspberry-Pi-32-bits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FInstall-OpenCV-Raspberry-Pi-32-bits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qengineering","download_url":"https://codeload.github.com/Qengineering/Install-OpenCV-Raspberry-Pi-32-bits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764381,"owners_count":21158074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opencv","opencv-45","raspberry-pi","rpi"],"created_at":"2024-11-27T11:28:46.222Z","updated_at":"2025-04-13T18:41:51.038Z","avatar_url":"https://github.com/Qengineering.png","language":"Shell","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL"],"categories":[],"sub_categories":[],"readme":"# Install-OpenCV-Raspberry-Pi-32-bits\n![output image]( https://qengineering.eu/images/LogoOpenRaspberryGitHub.webp )\n\n## OpenCV installation script for a Raspberry Pi with 32-bits OS\n\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\u003cbr/\u003e\n\nThis is the full setup of OpenCV for the Raspberry Pi 32-bits.\u003cbr/\u003e\nFor more information see [Q-engineering - Install OpenCV Raspberry Pi](https://qengineering.eu/install-opencv-4.5-on-raspberry-pi-4.html)\n\n------------\n\n## Installing OpenCV.\nYou must have allocated enough memory, otherwise the compilation, unfortunately, crashes after 2 hours at 100%\n```\n# check your total memory (RAM + swap) first. You need at least a total of:\n# OpenCV 4.10.0 -\u003e 6.5 GB!\n# OpenCV 4.9.0 -\u003e 6.5 GB!\n# OpenCV 4.8.0 -\u003e 6.5 GB!\n# OpenCV 4.7.0 -\u003e 6.5 GB!\n# OpenCV 4.6.0 -\u003e 6.5 GB!\n# OpenCV 4.5.5 -\u003e 6.5 GB!\n# OpenCV 4.5.0 -\u003e 5.5 GB\n# if not, enlarge your swap space as explained in the guide\n$ free -m\n\n$ wget https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-32-bits/raw/main/OpenCV-4-10-0.sh\n$ sudo chmod 755 ./OpenCV-4-10-0.sh\n$ ./OpenCV-4-10-0.sh\n```\n:point_right: Don't forget to reset your swap memory afterwards.\n\n------------\n\nIf you want to beautify OpenCV with the Qt5 GUI you need to\n```\n# Bookworm\n- $ sudo apt-get install qtbase5-dev\n# Other OS\n- $ sudo apt-get install qt5-default\n\n# in the cmake list\n- Set the -D WITH_QT=**ON** \\ (± line 54) in the script\n``` \nbefore running the script on your RPi\n\n------------\n\nOpenCV will be installed to the `/usr/local` directory, all files will be copied to following locations:\u003cbr/\u003e\n\n- `/usr/local/bin` - executable files\u003cbr/\u003e\n- `/usr/local/lib` - libraries (.so)\u003cbr/\u003e\n- `/usr/local/lib/cmake/opencv4` - cmake package\u003cbr/\u003e\n- `/usr/local/include/opencv4` - headers\u003cbr/\u003e\n- `/usr/local/share/opencv4` - other files (e.g. trained cascades in XML format)\u003cbr/\u003e\n\n------------\n\n[![paypal](https://qengineering.eu/images/TipJarSmall4.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL) \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Finstall-opencv-raspberry-pi-32-bits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqengineering%2Finstall-opencv-raspberry-pi-32-bits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Finstall-opencv-raspberry-pi-32-bits/lists"}