iT邦幫忙

2025 iThome 鐵人賽

DAY 18
0
自我挑戰組

好吃的樹莓派系列 第 18

第18口樹莓派|鏡頭專案|USB Webcam

  • 分享至 

  • xImage
  •  

筆者因為使用外接式鏡頭,先確認硬體是否有順利連上樹莓派,
在開啟終端機檢查是否有驅動,因為USB Webcam標準遵循UVC(USB Video Class):

lsusb

https://ithelp.ithome.com.tw/upload/images/20250930/20169513K2eLr4rNAJ.png
目前只有USB root hub,沒有出現「Webcam/Camera」的裝置名稱。這代表系統目前沒有偵測到USB外接鏡頭
https://ithelp.ithome.com.tw/upload/images/20250930/20169513ruwmNAxv8P.png
後來將Webcam的USB接上後,再執行一次命令:

Bus 001 Device 002: ID 0c45:6366 Microdia Webcam Vitade AF

這次lsusb已經偵測到鏡頭了:
https://ithelp.ithome.com.tw/upload/images/20250930/20169513CjUcY7DvLd.png
下一步確認/dev/video
/dev/video 出現了一整排,表示系統裡已經註冊了USB Webcam。
確認哪個是正確的相機節點

v4l2-ctl --list-devices
```![https://ithelp.ithome.com.tw/upload/images/20250930/201695132iIeMIyXPt.png](https://ithelp.ithome.com.tw/upload/images/20250930/201695132iIeMIyXPt.png)
![https://ithelp.ithome.com.tw/upload/images/20250930/20169513QAZeZdlklD.png](https://ithelp.ithome.com.tw/upload/images/20250930/20169513QAZeZdlklD.png)
![https://ithelp.ithome.com.tw/upload/images/20250930/20169513767L9t8EzT.png](https://ithelp.ithome.com.tw/upload/images/20250930/20169513767L9t8EzT.png)

上一篇
第17口樹莓派|Python|樹莓派小伺服器
下一篇
第19口樹莓派|鏡頭專案|USB Webcam|拍照
系列文
好吃的樹莓派22
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言