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

#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__

Raspberry Pi Camera + Python + OpenCV (Day1)

Raspberry Pi Camera + Python + OpenCV (Day2)

用手機控制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

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

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