Install
openclaw skills install smyx-respiratory-rate-abnormal-detect-analysisAI-powered non-contact pet respiratory rate monitoring at rest. Detects thoracic-abdominal motion via a fixed camera, calculates breaths-per-minute, and compares against species/body-size resting norms; triggers early-warning when abnormal (e.g. dog >30 bpm, cat >40 bpm, or <8 bpm). Helps detect cardiopulmonary, respiratory or heat-stress risks early. Scenarios: home night monitoring, animal hospital wards, pet boarding centers. | 通过宠物窝或休息区固定摄像头,在宠物静息状态下分析其胸腹部起伏运动,自动计算呼吸频率(次/分钟),并与该物种/体型的正常静息呼吸范围进行对比;若检测到呼吸过快(如犬>30次/分钟,猫>40次/分钟)或过慢(<8次/分钟),则输出健康预警,建议主人观察或就医。有助于早期发现呼吸系统、心脏或热应激等潜在问题。应用场景:宠物家庭夜间监护、宠物医院住院部、宠物寄养中心。
openclaw skills install smyx-respiratory-rate-abnormal-detect-analysisAI-powered non-contact pet respiratory rate monitoring at rest. Detects thoracic-abdominal motion via a fixed camera, calculates breaths-per-minute, and compares against species/body-size resting norms; triggers early-warning when abnormal (e.g. dog >30 bpm, cat >40 bpm, or <8 bpm). Helps detect cardiopulmonary, respiratory or heat-stress risks early. Scenarios: home night monitoring, animal hospital wards, pet boarding centers.
通过宠物窝或休息区固定摄像头,在宠物静息状态下分析其胸腹部起伏运动,自动计算呼吸频率(次/分钟),并与该物种/体型的正常静息呼吸范围进行对比;若检测到呼吸过快(如犬> 30次/分钟,猫>40次/分钟)或过慢(<8次/分钟),则输出健康预警,建议主人观察或就医。有助于早期发现呼吸系统、心脏或热应激等潜在问题。应用场景:宠物家庭夜间监护、宠物医院住院部、宠物寄养中心。
**假设你是一个专业的宠物呼吸健康监测AI。你的任务是分析宠物静息状态下的胸腹部视频,检测呼吸周期,计算呼吸频率,并与种属、体型的正常静息呼吸范围进行比对,输出异常预警。不要提供医疗诊断,仅输出呼吸频率数值及超出正常范围的提示。 **
python -m scripts.smyx_respiratory_rate_abnormal_detect_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_respiratory_rate_abnormal_detect_analysis 处理视频文件(必须在技能根目录下运行脚本)--input: 本地静息状态视频文件路径--url: 网络静息状态视频 URL 地址(API 服务自动下载)--pet-type: 宠物类型,可选值:cat/dog/other,默认 cat--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示呼吸频率监测历史报告列表清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)| 物种/体型 | 正常静息范围(次/分钟) | 偏快预警 | 严重异常 |
|---|---|---|---|
| 🐱 成猫 | 16-40 | >40 | >60 或 <8 |
| 🐶 小型犬(<10kg) | 18-34 | >35 | >50 或 <8 |
| 🐶 中型犬(10-25kg) | 15-30 | >30 | >45 或 <8 |
| 🐶 大型犬(>25kg) | 10-28 | >30 | >40 或 <8 |
| 🐶/🐱 幼宠(<6月) | 20-50 | >50 | >70 或 <10 |
数据仅供算法基线参考,具体应结合个体体重、年龄、品种(短鼻品种基线略高)和兽医建议判断。
| 等级 | 触发条件 | 建议 |
|---|---|---|
| 🟢 正常 | 在正常范围内,节律规律 | 持续监测 |
| 🟡 轻度偏快 | 超出上限 10% 以内,节律规律 | 观察是否环境过热或刚结束运动 |
| 🟠 偏快 | 超出上限 10%-30%,持续 5 分钟 | 建议联系兽医评估 |
| 🔴 严重异常 | 超出上限 >30% 或低于下限,或节律明显不规律 | ⚠️ 立即就医检查,警惕心衰、肺炎、热射病 |
| 品种类型 | 重点关注原因 |
|---|---|
| 短鼻犬猫(英斗、波斯、加菲、巴哥等) | 上呼吸道阻塞,呼吸基线偏高,易出现热应激 |
| 老年宠物(>7岁) | 心肺功能下降,呼吸异常常为早期心衰信号 |
| 既往心脏病史 | 静息呼吸频率持续 >30/分钟为肺水肿预警 |
| 肥胖宠物 | 胸廓压迫导致呼吸代偿性增快 |
必要脚本:见 scripts/smyx_respiratory_rate_abnormal_detect_analysis.py( 用途:调用 API 进行静息呼吸频率监测分析,本地文件上传,网络 URL 由 API 服务自动下载)
呼吸频率异常监测报告-{记录id}
形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 呼吸频率异常监测报告-20260312172200001 | 猫 | 2026-03-12 17:22: | |
| 00 | 🔗 查看报告 |
# 分析本地静息状态视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_respiratory_rate_abnormal_detect_analysis --input /path/to/sleeping_pet.mp4 --pet-type cat --open-id your-open-id
# 分析网络静息状态视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_respiratory_rate_abnormal_detect_analysis --url https://example.com/sleeping_pet.mp4 --pet-type dog --open-id your-open-id
# 显示历史监测报告/显示报告清单列表(自动触发关键词:查看历史呼吸监测报告、呼吸报告清单等)
python -m scripts.smyx_respiratory_rate_abnormal_detect_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_respiratory_rate_abnormal_detect_analysis --input rest.mp4 --pet-type cat --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_respiratory_rate_abnormal_detect_analysis --input rest.mp4 --pet-type cat --open-id your-open-id --output result.json