라즈파이 motionEye (웹 GUI 기반 카메라 서버)

(2017-01-27 추가) CSI 카메라(mmal service 16.1)와 USB 카메라(USB 2.0 PC Camra)의 카메라 2대에서.




개요


  • motionEye 라는 것을 라즈파이에 넣어 본다.

  • 기능 ( Features )
  • 웹 기반, 모바일 태블릿 친화적 인 사용자 인터페이스
  • 넉넉한 카메라 모듈 (CSI) 및 많은 USB 카메라와의 호환성.
  • IP 네트워크 카메라 지원
  • 스케줄 움직임 감지로 이메일로 알림.
  • JPEG 정지영상, AVI로 동영상 저장.
  • 저속 촬영(timelapse) 동영상
  • 구글 드라이브 및 드롭 박스에 파일 업로드

  • #그렇다고 합니다. 모든 기능은 확인하지 않았습니다.
  • 스크린샷

  • 환경


  • Raspberry Pi 3
  • 2016-05-27-raspbian-jessie-lite.img
  • USB2.0 웹캠 BUFFALO 녀석.

  • 사용하지 않는 카메라 모듈을 사용하는 경우 bcm2835-v4l2/etc/modules에 추가하십시오.
    grep bcm2835-v4l2 /etc/modules || echo bcm2835-v4l2 | sudo tee -a /etc/modules
    
  • (2017-01-27 갱신) Raspberry Pi 2 + 2017-01-11-raspbian-jessie-lite.img + USB 카메라 + CSI 카메라에서 동작 확인.

  • 절차


  • 평소 ( sudo apt-get update; sudo apt-get upgrade; sudo raspi-config )

  • motionEye 설치

  • Install On Raspbian에 따라 설치
  • # 必要なパッケージ類のインストール 
    sudo apt install -y python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142
    
    # motionのインストール
    # 2017-01-27: Raspbianのmotionいれて動くよ。
    sudo apt install -y motion 
    
    # 2017-01-27: ↓でも動作確認済み
    # ffmpegのインストール
    #wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb
    #sudo dpkg -i ffmpeg_3.1.1-1_armhf.deb
    # motionのインストール.
    #sudo wget https://github.com/ccrisan/motioneye/wiki/precompiled/motion-mrdave-raspbian -O /usr/local/bin/motion
    #sudo chmod +x /usr/local/bin/motion
    
    # motioneyeのインストール
    sudo pip install motioneye
    
    # motionの設定ファイル
    sudo mkdir -p /etc/motioneye
    sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
    
    # motionのメディアディレクトリ
    sudo mkdir -p /var/lib/motioneye
    
    # initスクリプトの追加、motionEyeサーバ起動.
    sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
    sudo systemctl daemon-reload
    sudo systemctl enable motioneye
    sudo systemctl start motioneye
    systemctl status motioneye
    
    ##########################################
    # motionEyeをアップグレードするとき。
    #
    sudo pip install motioneye --upgrade
    sudo systemctl restart motioneye
    

  • 브라우저에서 액세스 : http://<らずぱいのIP>:8765/
  • 처음 로그인Usename: adminPassword: (없음)

  • 포트 설정은 이번입니다.
    pi@raspberrypi:~ $ cat /etc/motioneye/motioneye.conf  | grep -i ^port
    port 8765
    

  • You have not configured any camera yet. Click here to add one...=> 메시지를 클릭하십시오 => 인식 된 카메라가 나오므로 선택하십시오 [OK]
  • admin과 user의 비밀번호를 설정할 때.
  • 좋은 웹페이지 즐겨찾기