樹莓派發現不了攝像頭


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
————————————————
版權聲明:本文為CSDN博主「祝你萬事順利」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/Game_Builder/java/article/details/83756920


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM