Install
openclaw skills install smyx-infant-suffocation-warning-analysisClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Identifies prone sleeping positions, head covering, and occlusion of the mouth/nose by bedding or clothing; provides real-time high-risk alerts to safeguard infant sleep safety. | 婴儿趴睡窒息预警技能,识别俯卧睡姿、蒙头、口鼻被被褥/衣物遮挡,高风险实时报警,守护婴儿睡眠安全
openclaw skills install smyx-infant-suffocation-warning-analysisEquipped with high-precision visual recognition algorithms, this feature conducts 24/7 real-time monitoring of infant sleep posture and facial coverage. The system precisely identifies potential asphyxiation risks, such as prone sleeping positions, head covering, and the occlusion of the nose and mouth by bedding or clothing. Upon detecting these high-risk states, the device immediately triggers a real-time alarm mechanism, alerting parents via sound or push notifications for rapid intervention. This active safety protection system aims to effectively prevent Sudden Infant Death Syndrome ( SIDS) and accidental suffocation, building a zero-dead-angle sleep safety barrier for the baby.
本功能搭载高精度视觉识别算法,对婴儿睡眠姿态及面部覆盖情况进行全天候实时监测。系统能够精准识别俯卧睡姿、蒙头睡眠以及口鼻被被褥或衣物遮挡等潜在窒息风险。一旦检测到上述高危状态,设备将立即触发实时报警机制,通过声音或推送通知提醒家长迅速干预。这一主动式安全防护体系,旨在有效预防婴儿猝死综合征(SIDS)及意外窒息事故,为宝宝构建零死角的睡眠安全屏障
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.infant_suffocation_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.infant_suffocation_warning_analysis 处理视频(必须在技能根目录下运行脚本)--input: 本地视频文件路径(使用 multipart/form-data 方式上传)--url: 网络视频 URL 地址(API 服务自动下载)--sensitivity: 报警灵敏度,可选 1-5,数值越高越敏感(默认 3)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史风险预警分析报告列表清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)婴儿趴睡窒息预警报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 分析时间 | 风险等级 | 点击查看 |
|---|---|---|---|
| 婴儿趴睡窒息预警报告-20260312172200001 | 2026-03-12 17:22:00 | ||
| 高风险 | 🔗 查看报告 |
# 分析本地监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.infant_suffocation_warning_analysis --input /path/to/sleep_monitor.mp4 --sensitivity 3 --open-id openclaw-control-ui
# 分析网络监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.infant_suffocation_warning_analysis --url https://example.com/baby_sleep.mp4 --open-id openclaw-control-ui
# 显示历史预警记录(自动触发关键词:查看历史预警、历史记录、预警清单等)
python -m scripts.infant_suffocation_warning_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.infant_suffocation_warning_analysis --input monitor.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.infant_suffocation_warning_analysis --input monitor.mp4 --open-id your-open-id --output result.json