Raspberry Pi 5 上的 MIPI 相機
若要查看支援的相機類型概覽,請開啟:https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
並搜尋 IMX219,您將會獲得一份可用的核心模組(kernel modules)清單。
目前僅支援 64 位元系統版本。
必須安裝 libcamera0.1 套件,在預設情況下該套件應該已經安裝。
/boot/config.txt 檔案應包含或省略以下設定:
dtparam=i2c_param=on
dtaparam=i2s=on
# disable auto detect
# it seems to interfer with the camera init
camera_auto_detect=0
# SENSOR is the camera model used, e.g. imx290, imx296, etc.
# X is the port used either 0 or 1
dtoverlay=<SENSOR>,cam<X>
重新啟動後,系統應能正確偵測到相機。而 IMX290 則需要額外的設定。
下載並解壓縮IMX290 Config file
複製 "pi/imx290.json" 到"/usr/share/libcamera/ipa/rpi/pisp/imx290.json".
工具
針對工具,請執行: "sudo apt install rpicam-apps libcamera-tools".
若要列出相機:
cam -l
若要顯示即時串流範例:
libcamera-raw --camera <X> -t 0 --width 1920 --height 1080 --framerate 30
其中 X 是由 -l 所列出的相機編號。
36SX296 Sensor board
請將附加的檔案 36sx296.dtbo i放置於 Raspberry Pi 5 的 /boot/firmware/overlays 資料夾中。
請編輯 /boot/firmware/config.txt 檔案,並將 dtoverlay=imx296 這一行替換為:dtoverlay=36sx296.
接著重新啟動。
若有任何進一步的疑問,請使用我們的 contact form 。