Skip to content

hfgsdjkfhkjsdfj/camera-vlm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Camera VLM Monitor

Raspberry Pi + Hailo AI HAT2 を使用したカメラ監視システム。 VLM (Qwen2-VL) で画像を解析し、異常検知時にLINE通知を送信します。

機能

  • カメラからの定期的な画像取得(AXIS / Uniview対応)
  • Hailo-10H + Qwen2-VL による画像解析
  • 動き検出による効率的な監視
  • 異常検知時のLINE通知(スクリーンショット付き)
  • 定時通知(9:00, 12:00, 15:00, 18:00)
  • 日本語翻訳対応(Google翻訳)
  • スナップショットの自動削除

必要環境

  • Raspberry Pi 5
  • Hailo AI HAT2 (Hailo-10H)
  • Python 3.x
  • hailo-apps (VLMバックエンド)

インストール

pip install deep-translator requests opencv-python

設定

camera_monitor.py 内の以下を設定:

# LINE Messaging API
LINE_CHANNEL_TOKEN = "your_token"
LINE_USER_ID = "your_user_id"

# カメラ設定
CAMERAS = {
    "uniview": {...},
    "axis": {...}
}

使用方法

手動実行

python3 camera_monitor.py --camera uniview --interval 30

systemdサービスとして実行

sudo cp camera_monitor.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable camera_monitor
sudo systemctl start camera_monitor

ログ確認

sudo journalctl -u camera_monitor -f

オプション

オプション 説明 デフォルト
--camera カメラ選択 (uniview/axis) uniview
--interval チェック間隔(秒) 30

ライセンス

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages