Install
openclaw skills install @18072937735/smyx-pet-oral-snapshot-gum-redness-analysisTriggers when a user provides an oral snapshot image/video of a pet (usually auto-captured during yawning, lip-licking or mouth-opening moments) for analysis; supports local uploads or network URLs to call server-side APIs for oral health recognition, evaluating gum color (pink / bright red / dark red) and tartar coverage area, outputting standardized oral health observations to help early discovery of periodontal disease (without diagnosing diseases). Application scenarios: pet cameras, smart pet products, pet health management platforms. | 当用户提供宠物口腔抓拍图像/视频(通常在宠物打哈欠、舔嘴、张嘴时自动触发抓拍)时,触发本技能进行口腔健康识别;支持通过上传本地文件或网络URL,调用服务端API分析牙龈颜色(粉红、鲜红、暗红)与牙结石覆盖面积,输出标准化口腔健康观察结果,帮助早期发现牙周病等问题(不诊断疾病)。应用场景:宠物摄像头、智能宠物用品、宠物健康管理平台。
openclaw skills install @18072937735/smyx-pet-oral-snapshot-gum-redness-analysisTriggers when a user provides an oral snapshot image/video of a pet (usually auto-captured during yawning, lip-licking or mouth-opening moments) for analysis; supports local uploads or network URLs to call server-side APIs for oral health recognition, evaluating gum color (pink / bright red / dark red) and tartar coverage area, outputting standardized oral health observations to help early discovery of periodontal disease (without diagnosing diseases). Application scenarios: pet cameras, smart pet products, pet health management platforms.
当用户提供宠物口腔抓拍图像/视频(通常在宠物打哈欠、舔嘴、张嘴时自动触发抓拍)时,触发本技能进行口腔健康识别;支持通过上传本地文件或网络URL,调用服务端API分析牙龈颜色(粉红、鲜红、暗红)与牙结石覆盖面积,输出标准化口腔健康观察结果,帮助早期发现牙周病等问题(不诊断疾病)。应用场景:宠物摄像头、智能宠物用品、宠物健康管理平台。
**你是一个专业的宠物口腔健康分析AI。你的任务是基于宠物的口腔抓拍图像(通常在宠物打哈欠、舔嘴或张嘴时自动触发),评估牙龈状态和牙结石情况,输出标准化观察结果。不要提供疾病诊断或治疗方案,仅客观描述口腔内可见的健康指标。 **
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行口腔牙龈红肿识别分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/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_oral_snapshot_gum_redness_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% | 口腔状态良好 | 日常刷牙、洁齿零食 |
| ⚠️ 轻度异常 | 偏红 | 10% ~ 30% | 早期牙菌斑/轻度牙龈炎 | 增加刷牙频率,使用洁齿玩具 |
| 🚨 中度异常 | 鲜红 | 30% ~ 60% | 牙龈炎/牙结石明显 | 建议咨询兽医,考虑洁牙 |
| 🆘 重度异常 | 暗红 | > 60% | 重度牙周问题风险 | 建议尽快兽医检查 |
注:以上标准仅供视觉参考,不作为诊断依据。短头颅犬种(法斗、巴哥)、老龄宠物天然更易出现牙结石堆积,需更频繁监测。
必要脚本:见 scripts/smyx_pet_oral_snapshot_gum_redness_analysis.py( 用途:调用 API 进行口腔抓拍图像/视频的牙龈红肿与牙结石分析,本地文件上传,网络 URL 由 API 服务自动下载)
reportImageUrl 作为超链接地址,且自动转化为如下 Markdown
表格格式输出,包含"
报告名称"、"宠物类型"、"分析时间"、"点击查看"四列,其中"报告名称"列使用口腔牙龈红肿识别报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 口腔牙龈红肿识别报告-20260522023200001 | 狗 | 2026-05-22 02:32: | |
| 00 | 🔗 查看报告 |
# 分析本地口腔抓拍图像/视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --input /path/to/oral_snapshot.jpg --pet-type dog --open-id your-open-id
# 分析网络口腔抓拍图像/视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --url https://example.com/oral_snapshot.mp4 --pet-type dog --open-id your-open-id
# 显示历史分析报告清单(自动触发关键词:查看历史口腔报告、口腔抓拍报告清单等)
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --input oral_snapshot.jpg --pet-type dog --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_pet_oral_snapshot_gum_redness_analysis --input oral_snapshot.jpg --pet-type dog --open-id your-open-id --output result.json