Install
openclaw skills install smyx-pet-eating-speed-slow-feed-analysisTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时,触发本技能进行进食速度检测分析;支持通过上传本地视频或网络视频URL,调用服务端API记录进食开始/结束时间,计算进食速度(克/秒),当低于安全阈值(例如 < 30 秒/碗)时触发外部干预信号(智能慢食碗隔板弹出、语音提醒),预防噎食与呕吐(不诊断疾病)。应用场景:智能慢食碗、宠物健康管理、犬类护理。
openclaw skills install smyx-pet-eating-speed-slow-feed-analysisTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed ( g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.
当用户提供食盆区域视频时,触发本技能进行进食速度检测分析;支持通过上传本地视频或网络视频URL,调用服务端API记录进食开始/结束时间,计算进食速度(克/秒),当低于安全阈值(例如 < 30 秒/碗)时触发外部干预信号(智能慢食碗隔板弹出、语音提醒),预防噎食与呕吐(不诊断疾病)。应用场景:智能慢食碗、宠物健康管理、犬类护理。
**你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频,检测宠物进食的开始和结束时间,估算进食速度,并根据预设安全阈值判断是否存在进食过快风险,输出分析结果及干预建议。不要提供疾病诊断,仅客观描述进食行为数据。 **
python -m scripts.smyx_pet_eating_speed_slow_feed_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_eating_speed_slow_feed_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: 结果输出文件路径(可选)| 等级 | 进食时长(每碗) | 状态描述 | 建议干预 |
|---|---|---|---|
| 🚨 过快(高风险) | < 30 秒 | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |
| ⚠️ 偏快 | 30 ~ 60 秒 | 需关注 | 语音温和提醒 |
| ✅ 正常 | 60 ~ 300 秒 | 安全 | 无需干预 |
| 💤 偏慢 | > 300 秒 | 关注食欲变化 | 无需干预,但建议记录食欲 |
注:以上阈值仅供参考,幼犬/大型犬/部分品种(拉布拉多、金毛等贪食型犬种)天然进食速度偏快,需结合品种与体重综合判断。
必要脚本:见 scripts/smyx_pet_eating_speed_slow_feed_analysis.py( 用途:调用 API 进行进食速度检测与慢食干预分析,本地文件上传,网络 URL 由 API 服务自动下载)
reportImageUrl 作为超链接地址,且自动转化为如下 Markdown
表格格式输出,包含"
报告名称"、"宠物类型"、"分析时间"、"点击查看"四列,其中"报告名称"列使用进食速度慢食干预报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 进食速度慢食干预报告-20260522020400001 | 狗 | 2026-05-22 02:04: | |
| 00 | 🔗 查看报告 |
# 分析本地食盆视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog --open-id your-open-id
# 分析网络食盆视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog --open-id your-open-id
# 显示历史分析报告清单(自动触发关键词:查看历史进食报告、慢食干预报告清单等)
python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --open-id your-open-id --output result.json