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-pythoncamera_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 30sudo cp camera_monitor.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable camera_monitor
sudo systemctl start camera_monitorsudo journalctl -u camera_monitor -f| オプション | 説明 | デフォルト |
|---|---|---|
| --camera | カメラ選択 (uniview/axis) | uniview |
| --interval | チェック間隔(秒) | 30 |
MIT