嵌入式系統(3)- 樹莓派DIY小車 - 攝像頭的使用
阿新 • • 發佈:2018-12-06
1.基本設定
sudo raspi-config 命令,進入到樹莓派基本設定介面
選擇:
5 Interfacing Options
然後選擇
Camera Enable
SSH Enable
VNC Enable
SPI Enable
I2C Enable
Serial Enable
1-Wire Enable
PS:
這裡一開始只是將Camera Enable
然後發現無法進行拍照出現
報錯
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
進行檢查
vcgencmd get_camera
得到結果:
supported=1 detected=0
只能檢測到有輸入,但是不能識別裝置
然後將後面的幾項全部Enable,再進行檢查
vcgencmd get_camera
得到結果:
supported=1 detected=1
2.拍攝
命令列執行
raspistill -o test.jpg
進行拍攝儲存在當前目錄
拍攝結果如下
參考資料:
樹莓派Camera的基本使用姿勢 https://www.aliyun.com/jiaocheng/132180.html
樹莓派3 B+ 的攝像頭簡單使用(video-streamer) http://www.mamicode.com/info-detail-2018954.html
樹莓派 3B 發現不了攝像頭 https://www.v2ex.com/t/384312