Webcam/zh tw
From Openmoko
Dolamo0415 (Talk | contribs) (New page: {{Languages|Webcam}} 這篇文章介紹如何將網路攝影機(Webcam)應用到Freerunner上. 網路攝影機這裡使用的是Logitech出版的[http://www.logitech....) |
Dolamo0415 (Talk | contribs) |
||
Line 5: | Line 5: | ||
網路攝影機這裡使用的是Logitech出版的[http://www.logitech.com/index.cfm/webcam_communications/webcams/devices/4224&cl=tw,zh 快看S5500網路攝影機], 使用[[http://en.wikipedia.org/wiki/USB_video_device_class UVC]]驅動程式. | 網路攝影機這裡使用的是Logitech出版的[http://www.logitech.com/index.cfm/webcam_communications/webcams/devices/4224&cl=tw,zh 快看S5500網路攝影機], 使用[[http://en.wikipedia.org/wiki/USB_video_device_class UVC]]驅動程式. | ||
− | + | 備註 : 此系統運作在[http://wiki.openmoko.org/wiki/Om_2008.8 Om2008.8]上, 請自行下載並燒入手機中 | |
− | == | + | == 增加Kernel對Webcam的支援 == |
− | + | 根據[http://wiki.openmoko.org/wiki/Kernel#Building_the_andy-tracking_branch andy-tracking branch]的方法, 將Kernel下載並切換到andy-tracking branch | |
− | + | 使用"make menuconfig", 選擇 "Device drivers", "Multimedia devices" | |
− | + | 點選 "Video For Linux", "Video For Linux API 1 compatible Layer", "Video capture adapters", "V4L USB devices", "USB Video Class (UVC)", "GSPCA based webcams", "ZC3XX USB Camera Driver (NEW)"(後面兩項要依使用者所用之WebCam而定) | |
− | + | 然後使用andy-tracking branch的方法將kernel編譯出來後燒入手機 | |
− | + | == USB Host與Device模式 == | |
− | + | ||
− | + | 如果FreeRunner要支援Webcam, 必須將[http://wiki.openmoko.org/wiki/Neo1973_USB_host USB切換到Host模式], 並使用特殊的USB母對母轉接頭 | |
− | + | ||
+ | 由於Freerunner的唯一對外界面被切換成Host模式後將會沒有操作介面, 故可以考慮使用[http://blogs.thehumanjourney.net/finds/entry/20080716 USB HUB接出鍵盤]與Webcam, 並安裝[http://www.opkg.org/ opkg]所提供的[http://wiki.openmoko.org/wiki/Vala-terminal Vala-terminal]來自行測試 | ||
+ | |||
+ | 在[http://www.opkg.org/ opkg]上也有使用圖形介面切換USB模式的應用程式 : [http://www.opkg.org/package_40.html USB Mode Button], 但要修改script的地方 : s3c2410-ohci皆修改成s3c-ohci, 因為新版Kernel已經將這個裝置修改了位置. | ||
+ | |||
+ | == 安裝Viewer == | ||
+ | |||
+ | 一個在Linux上很好的應用程式 : [http://www.quickcamteam.net/software/linux/v4l2-software/luvcview luvcview]. 使用者可自行將之 交叉編譯後複製到Freerunner上執行, 至於要製作成圖形的方法請參考 : [http://wiki.openmoko.org/wiki/Toolchain Toolchain] |
Latest revision as of 08:44, 4 June 2009
Languages: |
English • العربية • Български • Česky • Dansk • Deutsch • Esperanto • Eesti • Español • فارسی • Suomi • Français • עברית • Magyar • Italiano • 한국어 • Nederlands • Norsk (bokmål) • Polski • Português • Română • Русский • Svenska • Slovenčina • Українська • 中文(中国大陆) • 中文(台灣) • Euskara • Català |
這篇文章介紹如何將網路攝影機(Webcam)應用到Freerunner上.
網路攝影機這裡使用的是Logitech出版的快看S5500網路攝影機, 使用[UVC]驅動程式.
備註 : 此系統運作在Om2008.8上, 請自行下載並燒入手機中
[edit] 增加Kernel對Webcam的支援
根據andy-tracking branch的方法, 將Kernel下載並切換到andy-tracking branch
使用"make menuconfig", 選擇 "Device drivers", "Multimedia devices"
點選 "Video For Linux", "Video For Linux API 1 compatible Layer", "Video capture adapters", "V4L USB devices", "USB Video Class (UVC)", "GSPCA based webcams", "ZC3XX USB Camera Driver (NEW)"(後面兩項要依使用者所用之WebCam而定)
然後使用andy-tracking branch的方法將kernel編譯出來後燒入手機
[edit] USB Host與Device模式
如果FreeRunner要支援Webcam, 必須將USB切換到Host模式, 並使用特殊的USB母對母轉接頭
由於Freerunner的唯一對外界面被切換成Host模式後將會沒有操作介面, 故可以考慮使用USB HUB接出鍵盤與Webcam, 並安裝opkg所提供的Vala-terminal來自行測試
在opkg上也有使用圖形介面切換USB模式的應用程式 : USB Mode Button, 但要修改script的地方 : s3c2410-ohci皆修改成s3c-ohci, 因為新版Kernel已經將這個裝置修改了位置.
[edit] 安裝Viewer
一個在Linux上很好的應用程式 : luvcview. 使用者可自行將之 交叉編譯後複製到Freerunner上執行, 至於要製作成圖形的方法請參考 : Toolchain