Raspberry Pi 3個USB攝像頭 Motion(簡易監控裝置配置記錄1——介紹以及安裝)

NO IMAGE

參考:
Debian官網連結
Motion官網連結

首先,參見Debian官網連結對Motion的介紹,網頁中包含了所有相關依賴包,請首先確保這些依賴包的安裝。


Motion介紹

摘出對Motion的介紹部分。如下:
Package: motion (3.2.12-3.4)

V4L capture program supporting motion detection

Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion.

Motion is a command line based tool. It has no graphical user interface. Everything is setup either via the command line or via configuration files.

The output from motion can be:

  • jpg files
  • ppm format files
  • mpeg video sequences
    Also, motion has its own minimalistic web server. Thus, you can access the webcam output from motion via a browser.

簡單來說,Motion就是一款可以同時開啟多個攝像頭進行視訊監控並同時實現運動捕捉的程式,該程式基於命令列介面,其輸出支援jpg圖片輸出,ppm format視訊輸出,以及mpeg視訊序列輸出。同時,Motion還可以實現網頁端的實時視訊監控。


安裝介紹如下(摘自Motion官網連結):
PS:如果你想選擇編譯原始碼安裝,參見上面的連結,有詳細的說明。

Installation on Ubuntu

Motion is part of the Ubuntu repository. You can click either click here to install it via the Ubuntu Software-Center.
Or open up a terminal window and type:

sudo apt-get install motion

Before we start configuring Motion, we need to copy the config file to our Home folder so that the master copy won’t be affected. Open a terminal and copy the configuration file to your Home folder with following commands:

mkdir .motion

(Note: This will create a hidden folder “.motion” in your Home directory.)

sudo cp /etc/motion/motion.conf ~/.motion/motion.conf

(Note: This command will copy the original motion configuration file to its location.)
Now can open the configuration file for editing:

sudo nano ~/.motion/motion.conf

After you you have done so, start motion in the terminal simply by typing:

sudo motion

安裝好Motion之後,
輸入命令:

man motion

你會發現這是一款無比強大的應用。其可配置性強大的令人髮指。
附上其官網連線供參考。
和其他Linux下的強大程式相同,這款程式同樣是開源的。他的釋出遵守GPL。
無需註冊,無需任何人許可,你可以免費的安裝,使用它。