# open cv 설치 하기
https://qengineering.eu/install-opencv-4.5-on-raspberry-pi-4.html
1. EEPROM 업데이트
# to get the current status
$ sudo rpi-eeprom-update
# if needed, to update the firmware
$ sudo rpi-eeprom-update -a
$ sudo reboot
2. 버전 확인
$ uname –a # 결과가 ‘aarch64’ 이면 64bit OS , ‘armv7l’ 이면 32bit OS
3. Swap memory
: 2048 -> 4096 메모리변경 /etc/dphys-swapfile 은 변경하지 말 것. 데스크탑 동작 x
# edit the swap configuration
$ sudo nano /sbin/dphys-swapfile
$ sudo nano /etc/dphys-swapfile
# reboot
$ sudo reboot
# check your memory first
$ free -m
# you need at least a total of 6.5 GB!
# if not, enlarge your swap space as explained in the guide
$ wget https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-32-bits/raw/main/OpenCV-4-5-5.sh
$ sudo chmod 755 ./OpenCV-4-5-5.sh
$ ./OpenCV-4-5-5.sh
'raspberry pi4' 카테고리의 다른 글
라즈베리파이 SD Card 백업 및 복구 (0) | 2022.05.12 |
---|---|
tensorflow 설치 하기 for libcamera (0) | 2022.05.10 |
EEPROM 펌웨어 업데이트 방법 (0) | 2022.05.06 |
libcamera test (0) | 2022.05.04 |
CAMERA V2 모듈 설정 순서 (0) | 2022.05.03 |