Install
openclaw skills install smyx-infant-suffocation-risk-detection-analysisUsing a baby monitor (smart camera) fixed above the crib, the system analyzes infant sleep video in real time to detect sleep posture (supine, side, prone) and whether the mouth/nose area is occluded by a blanket, pillow, plush toy or other object. When prone position or mouth/nose occlusion is detected, the system outputs a risk level (medium / high) and immediately pushes alerts to the parents' mobile app to help prevent SIDS (Sudden Infant Death Syndrome) and suffocation accidents. Application scenarios: infant bedrooms, neonatal monitoring rooms, daycare institutions. The system monitors 24/7; once prone sleeping or mouth/nose occlusion is detected, it triggers a loud alarm and notifies parents via mobile. Skill features: prone sleeping and mouth/nose occlusion are the main environmental causes of SIDS. AI real-time monitoring helps parents correct unsafe postures in time and remove dangerous items, lowering suffocation risk. Can be integrated into smart baby cameras or baby cribs as a must-have safety feature for childcare. | 通过婴儿监护器(智能摄像头)固定于婴儿床上方,实时分析婴儿睡眠视频,检测婴儿的睡姿(仰卧、侧卧、俯卧)以及口鼻区域是否被被子、枕头、玩偶等异物遮挡。当检测到俯卧或口鼻被遮挡时,输出风险等级(中风险/高风险),并立即向父母手机APP推送警报,预防婴儿猝死综合征(SIDS)和窒息意外。应用场景:婴儿卧室、新生儿监护室、托育机构。系统24小时监测,一旦发现趴睡或口鼻遮挡,自动发出高分贝警报并通过手机通知家长。技能特点:趴睡和口鼻遮挡是导致婴儿猝死综合征的主要环境因素。通过AI实时监测,可帮助父母及时纠正不良睡姿,移开危险物品,降低窒息风险。该技能可集成到智能婴儿摄像头、婴儿床等产品中,成为育儿必备的安全功能。
openclaw skills install smyx-infant-suffocation-risk-detection-analysisUsing a baby monitor (smart camera) fixed above the crib, the system analyzes infant sleep video in real time to detect sleep posture (supine, side, prone) and whether the mouth/nose area is occluded by a blanket, pillow, plush toy or other object. When prone position or mouth/nose occlusion is detected, the system outputs a risk level (medium / high) and immediately pushes alerts to the parents' mobile app to help prevent SIDS (Sudden Infant Death Syndrome) and suffocation accidents. Application scenarios: infant bedrooms, neonatal monitoring rooms, daycare institutions. The system monitors 24/7; once prone sleeping or mouth/nose occlusion is detected, it triggers a loud alarm and notifies parents via mobile. Skill features: prone sleeping and mouth/nose occlusion are the main environmental causes of SIDS. AI real-time monitoring helps parents correct unsafe postures in time and remove dangerous items, lowering suffocation risk. Can be integrated into smart baby cameras or baby cribs as a must-have safety feature for childcare.
通过婴儿监护器(智能摄像头)固定于婴儿床上方,实时分析婴儿睡眠视频,检测婴儿的睡姿(仰卧、侧卧、俯卧)以及口鼻区域是否被被子、枕头、玩偶等异物遮挡。当检测到俯卧或口鼻被遮挡时,输出风险等级(中风险/高风险),并立即向父母手机APP推送警报,预防婴儿猝死综合征(SIDS)和窒息意外。应用场景:婴儿卧室、新生儿监护室、托育机构。系统24小时监测,一旦发现趴睡或口鼻遮挡,自动发出高分贝警报并通过手机通知家长。技能特点:趴睡和口鼻遮挡是导致婴儿猝死综合征的主要环境因素。通过AI实时监测,可帮助父母及时纠正不良睡姿,移开危险物品,降低窒息风险。该技能可集成到智能婴儿摄像头、婴儿床等产品中,成为育儿必备的安全功能。
假设你是一个专业的婴儿睡眠安全 AI。你的任务是分析婴儿床上方固定摄像头的实时视频,检测婴儿的睡姿(仰卧 / 侧卧 / 俯卧)以及口鼻区域是否被被子、枕头、毛绒玩具等物体遮挡。根据风险等级输出预警。不要提供医疗诊断或具体处置方案,仅输出基于视觉的睡姿与遮挡判断结果。
python -m scripts.smyx_infant_suffocation_risk_detection_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.smyx_infant_suffocation_risk_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地婴儿床上方监控视频文件路径--url: 网络婴儿床上方监控视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,婴儿睡眠安全场景默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示婴儿趴睡窒息风险历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)婴儿趴睡窒息风险预警报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 风险等级 | 分析时间 | 点击查看 |
|---|---|---|---|
| 婴儿趴睡窒息风险预警报告-20260312172200001 | high(俯卧+被子遮挡) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地婴儿床监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_infant_suffocation_risk_detection_analysis --input /path/to/crib.mp4 --open-id your-open-id
# 分析网络婴儿床监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_infant_suffocation_risk_detection_analysis --url https://example.com/crib.mp4 --open-id your-open-id
# 显示历史婴儿趴睡窒息风险报告(自动触发关键词:查看婴儿趴睡历史报告、婴儿窒息风险报告清单等)
python -m scripts.smyx_infant_suffocation_risk_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_infant_suffocation_risk_detection_analysis --input crib.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_infant_suffocation_risk_detection_analysis --input crib.mp4 --open-id your-open-id --output result.json