Install
openclaw skills install smyx-pet-carrier-respiratory-rate-analysisTriggers when a user provides a video of a pet inside an airline carrier/crate for analysis; supports local uploads or network URLs to call server-side APIs for respiratory rate monitoring, detecting chest/abdomen rise-fall cycles to calculate resting breathing frequency (breaths/min), and outputting an alert when the rate exceeds the safety threshold (>40 bpm), helping early detection of hypoxia, anxiety, or health abnormalities during pet air transport to reduce transport risks (without diagnosing diseases). Application scenarios: pet airline carriers, pet cargo transport, long-distance pet transport. | 当用户提供航空箱内宠物视频时,触发本技能进行呼吸频率监测分析;支持通过上传本地视频或网络视频URL,调用服务端API检测胸腹起伏运动,计算静息呼吸频率(次/分),超过安全阈值(>40次/分)时输出预警,帮助托运过程中早期发现缺氧、焦虑或健康异常,降低托运风险(不诊断疾病)。应用场景:宠物航空箱、宠物托运、宠物长途运输。
openclaw skills install smyx-pet-carrier-respiratory-rate-analysisTriggers when a user provides a video of a pet inside an airline carrier/crate for analysis; supports local uploads or network URLs to call server-side APIs for respiratory rate monitoring, detecting chest/abdomen rise-fall cycles to calculate resting breathing frequency (breaths/min), and outputting an alert when the rate exceeds the safety threshold (>40 bpm), helping early detection of hypoxia, anxiety, or health abnormalities during pet air transport to reduce transport risks (without diagnosing diseases). Application scenarios: pet airline carriers, pet cargo transport, long-distance pet transport.
当用户提供航空箱内宠物视频时,触发本技能进行呼吸频率监测分析;支持通过上传本地视频或网络视频URL,调用服务端API检测胸腹起伏运动,计算静息呼吸频率(次/分),超过安全阈值(> 40次/分)时输出预警,帮助托运过程中早期发现缺氧、焦虑或健康异常,降低托运风险(不诊断疾病)。应用场景:宠物航空箱、宠物托运、宠物长途运输。
**你是一个专业的宠物健康监测AI。你的任务是基于航空箱内宠物的连续视频,检测宠物的胸腹起伏运动,计算静息呼吸频率,并与安全阈值对比,输出标准化呼吸监测结果。不要提供疾病诊断或治疗建议,仅客观描述呼吸频率数据及异常提醒。 **
python -m scripts.smyx_pet_carrier_respiratory_rate_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_pet_carrier_respiratory_rate_analysis 处理视频文件(必须在技能根目录下运行脚本)--input: 本地视频文件路径--url: 网络视频 URL 地址(API 服务自动下载)--pet-type: 宠物类型,可选值:cat/dog/other,默认 dog--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示航空箱呼吸频率历史分析报告列表清单(可输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)| 状态 | 狗(次/分) | 猫(次/分) | 说明 |
|---|---|---|---|
| 正常静息 | 10~30 | 20~30 | 安静放松状态 |
| 偏快(关注) | 31~40 | 31~40 | 可能紧张/环境温度高 |
| ⚠️ 异常预警 | >40 | >40 | 缺氧/焦虑/疼痛风险,需关注 |
| 🚨 急促危险 | >60 | >60 | 高度危险,建议紧急处理 |
注:以上阈值仅供参考,幼宠/老龄宠/短鼻犬种(法斗、巴哥等)呼吸频率天然偏高,需结合品种特征综合判断。
必要脚本:见 scripts/smyx_pet_carrier_respiratory_rate_analysis.py( 用途:调用 API 进行呼吸频率监测分析,本地文件上传,网络 URL 由 API 服务自动下载)
reportImageUrl 作为超链接地址,且自动转化为如下 Markdown
表格格式输出,包含"
报告名称"、"宠物类型"、"分析时间"、"点击查看"四列,其中"报告名称"列使用航空箱呼吸频率监测报告-{记录id}形式拼接, "
点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 航空箱呼吸频率监测报告-20260522000800001 | 狗 | 2026-05-22 00:08: | |
| 00 | 🔗 查看报告 |
# 分析本地航空箱内宠物视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input /path/to/carrier_video.mp4 --pet-type dog --open-id your-open-id
# 分析网络航空箱内宠物视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --url https://example.com/carrier_video.mp4 --pet-type dog --open-id your-open-id
# 显示历史分析报告清单(自动触发关键词:查看历史呼吸报告、航空箱监测报告清单等)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input carrier_video.mp4 --pet-type dog --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input carrier_video.mp4 --pet-type dog --open-id your-open-id --output result.json