2017/09/26

Raspberry Pi Zero W啟用 RPI Camera V2


安裝好後,輸入

sudo update -y
sudo upgrade -y
sudo raspi-config

選擇Interface Options

選擇Camera



選擇Yes

接著輸入

sudo rpi-update

更新完之後輸入

sudo shutdown -r now

重開機後輸入下方指令就能知道是否啟用相機了

raspistill -w 1920 -h 1080 -q 100 -o test.jpg









如果出現如下方訊息就是相機排線插反,修正後得重新輸入sudo rpi-update

mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

沒有留言:

張貼留言