Install
openclaw skills install smyx-snake-stomatitis-detection-analysisThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头,捕捉蛇张口(打哈欠、进食后或口腔检查)时的瞬间高清图像,利用 AI 视觉分析技术检测口腔黏膜颜色(正常粉红色、轻度炎症红色、重度炎症暗红或苍白)、有无脓点(白色或黄色点状物)、溃疡或腐肉(不规则凹陷、坏死组织),综合输出口炎风险等级(低/中/高)。该技能有助于早期发现蛇类口腔感染,预防败血症。
openclaw skills install smyx-snake-stomatitis-detection-analysisThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.
通过蛇箱固定摄像头,捕捉蛇张口(打哈欠、进食后或口腔检查)时的瞬间高清图像,利用 AI 视觉分析技术检测口腔黏膜颜色(正常粉红色、轻度炎症红色、重度炎症暗红或苍白)、有无脓点(白色或黄色点状物)、溃疡或腐肉(不规则凹陷、坏死组织),综合输出口炎风险等级(低/中/高)。该技能有助于早期发现蛇类口腔感染,预防败血症。应用场景:蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍,并分析口腔健康状况。技能特点:蛇类口炎(传染性口炎)是常见疾病,早期仅表现为口腔黏膜轻度红肿,若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变,可帮助饲养者及早干预,提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。
假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像(正对蛇头部口腔,分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清,帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍),围绕"口炎四要素"展开检测:① 口腔黏膜颜色分类:healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10(≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度)+ 斑块状红肿 + 苍白区域;② 脓点与分泌物:白色/黄色点状隆起 + 数量 + 位置(前/后牙龈/上腭/内唇/咽部入口) + 干酪样斑块(灰白/黄色膜状物,口炎典型征兆) + 异常黏液/泡沫 + 分泌物颜色(清/白脓/黄脓/血染);③ 溃疡与腐肉:黏膜表面不规则凹陷 + 数量 + 深度(浅表/中度/深及深层组织) + 腐肉/坏死组织(暗色/黑褐色不规则组织,口炎晚期征兆) + 坏死面积估算 + 牙龈退缩或出血;④ 物种特异性 + 上下文排除:毒蛇(毒牙/毒腺开口) vs 无毒蛇 vs 蟒蚺口腔结构差异;蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激(口炎主因之一)→ 必须排除非感染性混淆。按 7 类综合场景判定(oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable),按 4 级提醒策略递进(Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ 🚨 警告口炎中期可快速恶化为败血症 → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段,败血症风险极高可短期致死)。核心生理性上下文必须排除 4 项:蜕皮期口腔黏膜可能轻微异常(必须录入上次蜕皮日期);进食后 24h 短暂充血(必须录入上次喂食日期);繁殖期雄性争斗可致非感染性口腔外伤;低温应激损伤黏膜屏障(必须检查环境温湿度是否在物种适宜范围)。物种解剖硬约束:毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 oral_signal_unreliable。不提供任何疾病诊断,仅输出基于视觉的病变识别结果;🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量;🚨 严禁输出"用聚维酮碘稀释液冲洗""涂抹制霉菌素""肌注恩诺沙星 5mg/kg""口服甲硝唑""涂云南白药"等具体处方;🚨 严禁输出"自行刮除腐肉""自行清创""自行拔除松动牙齿"等任何外科操作建议;严禁伪造夸大红肿评分/脓点数量/溃疡深度;严禁越权代用户启停加热灯/UVB/湿度控制(仅可建议)。
python -m scripts.smyx_snake_stomatitis_detection_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_snake_stomatitis_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: 结果输出文件路径(可选)oral_signal_unreliable蛇口炎评估-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 风险等级/红肿评分/场景 | 分析时间 | 点击查看 |
|---|---|---|---|
| 蛇口炎评估-20260525113800001 | 高 / 9/10 + 腐肉+深溃疡 / stomatitis_risk_high | 2026-05-25 11:38:00 | 🔗 查看报告 |
# 分析本地蛇张口瞬间口腔图像(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg --open-id your-open-id
# 分析网络蛇张口瞬间口腔图像(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg --open-id your-open-id
# 显示历史口炎评估记录清单(自动触发关键词:查看蛇类口炎历史报告等)
python -m scripts.smyx_snake_stomatitis_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --open-id your-open-id --output result.json