# home_ai_monitor **Repository Path**: sendtion/home_ai_monitor ## Basic Information - **Project Name**: home_ai_monitor - **Description**: 家庭AI看护 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-01 - **Last Updated**: 2026-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 智能家庭看护系统 基于 RTSP 摄像头和 AI 人体检测的智能家庭看护系统,支持多摄像头接入、飞书和微信消息推送。 ## 功能特性 - 📹 **多摄像头支持** - 支持多个 RTSP 摄像头同时接入 - 🔄 **智能轮询检测** - CPU 模式下自动轮询检测,优化资源使用 - 🤖 **AI 人体检测** - 基于 YOLOv8 的实时人体检测 - 🎬 **GIF 片段生成** - 检测到人后自动生成 GIF 动图 - 📱 **飞书通知** - 实时推送告警消息和 GIF 到飞书 - 💬 **微信通知** - 支持企业微信和 ServerChan 推送 - 📊 **日报推送** - 每天早上 8 点自动生成并推送昨日统计报告 ## 快速开始 ### 1. 安装依赖 ```bash pip install -r requirements.txt ``` ### 2. 配置系统 编辑 `config/config.yaml`,配置摄像头 RTSP 地址和通知 Webhook。 ### 3. 运行系统 ```bash python src/main.py -c config/config.yaml ``` ## 配置说明 ### 摄像头配置 ```yaml cameras: - id: "cam1" name: "客厅摄像头" rtsp_url: "rtsp://username:password@192.168.1.100:554/stream1" enabled: true fps: 3 detect_mode: "poll" poll_interval: 2 ``` ### 检测模式 - **poll (轮询)**: 多摄像头 CPU 模式,轮流检测 - **continuous (连续)**: 单摄像头或 GPU 模式 ## 项目结构 ``` home_ai_monitor/ ├── config/ │ └── config.yaml ├── src/ │ ├── __init__.py │ ├── camera.py │ ├── detector.py │ ├── gif_generator.py │ ├── notifier/ │ │ ├── __init__.py │ │ ├── feishu.py │ │ └── wechat.py │ ├── reporter.py │ └── main.py ├── data/ ├── requirements.txt └── README.md ``` ## License MIT License