Raspberry Pi學習筆記(五): Pi Camera+Python+OpenCV安裝

Yanwei Liu
May 13, 2019 · 1 min read

#20190811更新Pi Camera資源
#20190811更新Raspberry Pi相容的Webcam列表

Pi Camera安裝

幫樹莓派裝眼睛:Raspberry Pi 相機模組安裝連接模組時,要小心Pi上的連接座是用卡榫的,輕輕撥動即可。

測試拍照

raspistill -o image.png

安裝OpenCV

sudo apt-get update && sudo apt-get upgrade
sudo apt install libqt4-test#關鍵
sudo apt-get install -y festival python-dev python-opencv python-pip x11vnc liblivemedia-dev libv4l-dev cmake python-matplotlib vlc libatlas-base-dev libjasper-dev libqtgui4 python3-pyqt5
參考本文pip3 install opencv-python

檢查安裝是否成功

python3
import cv2
cv2.__version__

用手機控制Pi Camera

https://play.google.com/store/apps/details?id=com.pibits.raspberrypiremotecam

Pi Camera&Webcam

樹莓派原裝紅外夜視攝像頭V2版 — 800萬像素 紅外

  • 800萬像素
  • 感光芯片為索尼IMX219
  • 攝像頭參數:
  • CMOS尺寸:1/4英吋
  • 光圈(F):2.0
  • 焦距(Focal Length):3.04mm
  • 對角視場角(FOV):62.2度
  • 靜態圖片分辨率為3280 × 2464
  • 支持1080p30, 720p60以及640 × 480p90視頻錄像
  • 尺寸:25mm × 24mm × 9mm

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store