樹梅派可支持多個攝像頭同時輸出,我們只要修改mjpg-streamer的啟動腳本就可以辦到

  • 首先進行遠程桌面
  • 打開命令終端
  • 安裝mjpg-streamer軟體
  • git clone http://github.com/jacksonliam/mjpg-streamer.git
  • 安裝所需套件
  • sudo apt-get install subversion
  • sudo apt-get install libjpeg8-dev
  • sudo apt-get install imagemagick
  • sudo apt-get install libv4l-dev
  • sudo apt-get install cmake
  • sudo apt-get install git
  • 有問題全部按y
  • 下載完後打開資料夾
  • cd mjpg-streamer/mjpg-streamer-experimental
  • 把剛載的東西放進去
  • make
  • make all
  • sudo make install
  • 再來把攝影機連接樹莓派 的USB孔
  • 在用lsusb檢查連線狀態]
  • 確定連線後在資料夾下打上指令來啟動攝影機
  • ./mjpg_streamer -i”./input_uvc.so” -o”./output_http.so -w ./www”
  • 完成啟動後就可以在網頁上打上
  • http://192.168.0.135:8080/
  • 就有影像啦

76 thoughts on “樹莓派(Raspberry Pi)從零開始 -12. 樹莓派攝像頭配置

  1. A person necessarily assist to make severely posts I’d state.
    That is the first time I frequented your web page
    and to this point? I surprised with the analysis you made to create this particular post amazing.
    Wonderful activity!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>