OpenCV ์„ค์น˜

sudo apt-get update

https://github.com/dltpdn/opencv-for-rpi ์ฐธ๊ณ 

//  ๋ฐฐํฌ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ, opencv4.2.0.deb.tar
wget https://github.com/dltpdn/opencv-for-rpi/releases/download/4.2.0_buster_pi3b/opencv4.2.0.deb.tar
tar -xvf opencv4.2.0.deb.tar
sudo apt-get install -y ./OpenCV*.deb
pkg-config --modversion opencv4

์„ค์น˜ ์™„๋ฃŒ, ๋ฒ„์ ผ ํ™•์ธ

import cv2


print(cv2.__version__)

//pi@raspberrypi:~/Desktop/Python $ /usr/bin/python3 /home/pi/Desktop/Python/opencv.py
//4.2.0

 

 

728x90
๋ฐ˜์‘ํ˜•
18์ง„์ˆ˜