Install
openclaw skills install smyx-virtual-fence-intrusion-warning-analysisCustomizes safety zones, identifies babies crawling out or approaching dangerous areas such as bedsides/windowsills, and immediately alerts to protect baby safety. | 虚拟围栏越界预警技能,自定义安全区域,识别婴儿爬出、靠近床边/窗台危险区域立即报警,守护宝宝安全
openclaw skills install smyx-virtual-fence-intrusion-warning-analysisBased on advanced computer vision and human pose estimation algorithms, this feature is specifically designed for infant home safety. It empowers parents to customize virtual safety zones (such as beds or playmats) and danger zones (like windowsills, staircases, or near sockets) via a mobile app, while continuously monitoring the infant's spatial position and movement trajectory. When the system detects the infant crawling out of a safe area, approaching a hazardous edge, or crossing boundaries, it immediately triggers a multi-level warning mechanism. Notifications are sent to guardians via APP push and on-site voice alerts, accompanied by screenshots and timestamps of the incident. This creates an all-weather, comprehensive active safety network for infants, making it perfectly suitable for home bedrooms and living rooms.
本功能基于先进的计算机视觉与人体姿态估计算法,专为婴幼儿居家安全设计。系统支持家长通过移动端自定义划定虚拟安全区域(如床铺、爬行垫)及危险禁区(如窗台、楼梯口、插座附近),实时监测婴儿的空间位置与移动轨迹。当识别到婴儿爬出安全区域、靠近危险边缘或出现越界行为时,系统会立即触发多级预警机制,通过APP推送、现场语音提醒等方式通知监护人,同时记录异常行为截图与时间戳,为婴幼儿构建全天候、无死角的主动安全防护网,适用于家庭卧室、客厅等场景
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.virtual_fence_intrusion_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.virtual_fence_intrusion_warning_analysis 处理视频(必须在技能根目录下运行脚本)--input: 本地视频文件路径(使用 multipart/form-data 方式上传)--url: 网络视频 URL 地址(API 服务自动下载)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史虚拟围栏越界预警分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/virtual_fence_intrusion_warning_analysis.py( 用途:调用 API 进行虚拟围栏越界预警分析,本地文件使用 multipart/form-data 方式上传,网络 URL 由 API 服务自动下载)
虚拟围栏越界预警报告-{记录id}
形式拼接, "点击查看"列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 越界次数 | 是否触发预警 | 监测时间 | 点击查看 |
|---|---|---|---|---|
| 虚拟围栏越界预警报告 -20260329003200001 | 2次 | 是 | 2026-03-29 00: | |
| 32 | 🔗 查看报告 |
# 分析本地监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.virtual_fence_intrusion_warning_analysis --input /path/to/room.mp4 --open-id openclaw-control-ui
# 分析网络监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.virtual_fence_intrusion_warning_analysis --url https://example.com/room.mp4 --open-id openclaw-control-ui
# 显示历史预警记录/显示预警报告清单列表/显示历史越界预警(自动触发关键词:查看历史预警报告、历史报告、预警报告清单等)
python -m scripts.virtual_fence_intrusion_warning_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.virtual_fence_intrusion_warning_analysis --input room.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.virtual_fence_intrusion_warning_analysis --input room.mp4 --open-id your-open-id --output result.json