Based on advanced facial recognition and behavior analysis algorithms, this feature is specifically designed for the
safety protection of minors. The system utilizes cameras to monitor areas frequented by minors in real-time. It
immediately triggers a multi-level warning mechanism when it detects strangers approaching or loitering for extended
periods. Supporting customizable safety zones and personnel whitelists, the system accurately distinguishes between
authorized individuals—such as parents and teachers—and unknown visitors. Alert notifications are sent in real-time to
guardians' devices via APP push notifications and SMS, while also supporting on-site voice alerts. Suitable for
scenarios including homes, schools, and care institutions, this feature builds a 24/7 safety network for minors.
本功能基于先进的人脸识别与行为分析算法,专为未成年人安全守护设计。系统通过摄像头实时监测未成年人活动区域,当识别到陌生人员靠近或长时间滞留时,立即触发多级预警机制。支持自定义安全区域与人员白名单,可精准区分家长、老师等授权人员与陌生访客。预警信息将通过APP推送、短信等方式实时发送至监护人终端,同时支持现场语音提醒,适用于家庭、学校、托管机构等场景,为未成年人构建全天候的安全防护网。
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件:查看历史预警报告、历史陌生人检测、预警报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、陌生人检测报告,查询陌生人靠近预警分析报告
查看历史报告"等),必须:
python -m scripts.stranger_approach_warning_analysis --list --open-id参数调用 API
查询云端的历史报告数据
```
requests>=2.28.0
```
在执行陌生人靠近预警分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.stranger_approach_warning_analysis 处理视频文件(必须在技能根目录下运行脚本)--input: 本地视频/图片文件路径--url: 网络视频/图片 URL 地址(API 服务自动下载)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史陌生人靠近预警分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)API 进行陌生人靠近预警分析,本地文件上传,网络 URL 由 API 服务自动下载)
表格格式输出,包含"
报告名称"、"输入类型"、"分析时间"、"风险等级"、"点击查看"五列,其中"报告名称"列使用陌生人靠近预警分析报告-{记录id}
形式拼接, "点击查看"列使用
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
| 报告名称 | 输入类型 | 分析时间 | 风险等级 | 点击查看 |
|----------|----------|----------|----------|----------|
| 陌生人靠近预警分析报告 -20260328221000001 | 视频 | 2026-03-28 22:10:00 |
低风险 | 🔗 查看报告 |
# 分析本地视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stranger_approach_warning_analysis --input /path/to/monitor.mp4 --open-id openclaw-control-ui
# 分析网络视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stranger_approach_warning_analysis --url https://example.com/monitor.mp4 --open-id openclaw-control-ui
# 分析监控图片(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stranger_approach_warning_analysis --input /path/to/capture.jpg --open-id openclaw-control-ui
# 显示历史分析报告/显示分析报告清单列表/显示历史预警报告(自动触发关键词:查看历史预警报告、历史报告、预警报告清单等)
python -m scripts.stranger_approach_warning_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.stranger_approach_warning_analysis --input monitor.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.stranger_approach_warning_analysis --input monitor.mp4 --open-id your-open-id --output result.json
共 5 个版本