Install
openclaw skills install smyx-fish-color-brightness-assessment-analysisThrough fixed aquarium cameras, the system periodically captures high-definition side images of ornamental fish (such as koi, goldfish, tropical fish), and uses AI vision analysis to extract color saturation (HSV-S channel) and brightness (HSV-V channel) of specific body regions (e.g. mid-trunk), compares them with healthy standard color ranges of the same species (built-in database or user-defined), and outputs a vibrancy score (0-100). When the score is below a threshold (e.g. <50), the system reports 'dull color', which may signal disease, malnutrition or poor water quality. Application scenarios: home aquariums, public aquariums, ornamental fish farms. The system assesses weekly or daily and generates color health reports. Skill features: fish color is a critical health indicator — dull coloration is often an early sign of disease, parasites or environmental stress. AI-based periodic vibrancy assessment helps spot issues early and improve husbandry management. This skill can be integrated into smart aquarium cameras or aquatic apps. | 通过鱼缸固定摄像头,定期拍摄观赏鱼(如锦鲤、金鱼、热带鱼)的体侧高清图像,利用 AI 视觉分析技术提取鱼体特定区域(如躯干中部)的颜色饱和度(HSV 色彩空间的 S 通道值)和亮度(V 通道值),并对比同品种健康鱼的标准色度范围(内置数据库或用户自定义),输出鲜艳度评分(0-100 分)。当评分低于阈值(如 < 50)时,提示'体色暗淡',可能为疾病、营养不良或水质不良的信号。应用场景:家庭鱼缸、水族馆、观赏鱼养殖场。系统每周或每日评估,生成体色健康报告。技能特点:鱼体颜色是健康的重要指示器,体色暗淡常为疾病、寄生虫或环境应激的早期表现。通过 AI 定期评估鲜艳度,可及时发现问题,提升养殖管理水平。该技能可集成到智能鱼缸摄像头或水族 APP 中。
openclaw skills install smyx-fish-color-brightness-assessment-analysisThrough fixed aquarium cameras, the system periodically captures high-definition side images of ornamental fish (such as koi, goldfish, tropical fish), and uses AI vision analysis to extract color saturation (HSV-S channel) and brightness (HSV-V channel) of specific body regions (e.g. mid-trunk), compares them with healthy standard color ranges of the same species (built-in database or user-defined), and outputs a vibrancy score (0-100). When the score is below a threshold (e.g. <50), the system reports 'dull color', which may signal disease, malnutrition or poor water quality. Application scenarios: home aquariums, public aquariums, ornamental fish farms. The system assesses weekly or daily and generates color health reports. Skill features: fish color is a critical health indicator — dull coloration is often an early sign of disease, parasites or environmental stress. AI-based periodic vibrancy assessment helps spot issues early and improve husbandry management. This skill can be integrated into smart aquarium cameras or aquatic apps.
通过鱼缸固定摄像头,定期拍摄观赏鱼(如锦鲤、金鱼、热带鱼)的体侧高清图像,利用 AI 视觉分析技术提取鱼体特定区域(如躯干中部)的颜色饱和度(HSV 色彩空间的 S 通道值)和亮度(V 通道值),并对比同品种健康鱼的标准色度范围(内置数据库或用户自定义),输出鲜艳度评分(0-100 分)。当评分低于阈值(如 < 50)时,提示'体色暗淡',可能为疾病、营养不良或水质不良的信号。应用场景:家庭鱼缸、水族馆、观赏鱼养殖场。系统每周或每日评估,生成体色健康报告。技能特点:鱼体颜色是健康的重要指示器,体色暗淡常为疾病、寄生虫或环境应激的早期表现。通过 AI 定期评估鲜艳度,可及时发现问题,提升养殖管理水平。该技能可集成到智能鱼缸摄像头或水族 APP 中。
假设你是一个专业的水族色彩评估 AI。你的任务是分析观赏鱼体侧高清图像(≥ 1080p,鱼体侧面拍摄,视野内必须有白卡/灰卡/ColorChecker 作白平衡参考),先对图像做白平衡校正与光照归一化**(基于白参考估算光照色温 K),然后分割鱼体并提取躯干主区域(默认 trunk_middle,可选 head / dorsal / caudal_fin)的 HSV-S(饱和度)+ HSV-V(亮度)+ HSV-H(色相分布直方图),按 species_subtype(精确到子品系,如锦鲤-大正三色 / 神仙鱼-银河系 / 孔雀鱼-礼服)匹配标准色度基线(饱和度范围 / 亮度范围 / 调色板 / z-score),计算 vibrancy_score_0_100(鲜艳度综合评分),再结合 7 天 / 30 天评分趋势,按 7 类综合场景判定(color_vibrant_excellent ≥ 85 / color_vibrant_good 70-84 / color_acceptable 50-69 / color_dull_mild 35-49 / color_dull_severe < 35 / color_baseline_unavailable / color_signal_unreliable),并按 4 级提醒策略递进(Level 1 积极反馈 → Level 2 评估增色饲料+光照+水质 → Level 3 紧急检查体表+游姿+水质五项+联系兽医 → Level 4 连续 ≥ 14 天或同缸 ≥ 50% 同时严重暗淡 + 全面排查 + 所有联系人)。核心硬约束:未做白平衡的评分一律视为不可信 → 必须返回 color_signal_unreliable。品系特异性必须按基线判定(锦鲤红白要求红色 S>200/白色高亮 / 昭和要求黑色覆盖度 / 神仙鱼银河系要求斑点分布而非饱和度),严禁通用阈值盲判。生理性上下文必须考虑(繁殖期婚姻色加深 / 应激色暂时暗淡 / 投喂后短时增色 / 鱼龄增长色彩自然渐变),避免误判。白参考未检出 / 分割置信度 < 0.7 / 光照过暗或过曝 / 鱼体姿态侧面不可见时必须返回 color_signal_unreliable 并建议重拍/补光/放置白卡。不提供任何疾病诊断,仅输出基于色彩分析的鲜艳度评分;严禁输出具体药物名称、剂量、给药方案;严禁输出具体饲料品牌名称、增色剂品牌(仅可中性提示"含虾青素/螺旋藻类增色饲料");严禁伪造夸大 HSV 值与鲜艳度评分;严禁越权代用户启停灯光/加热棒/喂食器/增氧/换水(仅建议)。**
python -m scripts.smyx_fish_color_brightness_assessment_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_fish_color_brightness_assessment_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: 结果输出文件路径(可选)vibrancy_score_0_100 鲜艳度综合评分(基于品系精确基线对比)color_signal_unreliablecolor_signal_unreliable 并建议重拍/补光/放置白卡鱼体色评估-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 鲜艳度评分/品系/场景 | 分析时间 | 点击查看 |
|---|---|---|---|
| 鱼体色评估-20260525020600001 | 78 / 锦鲤-大正三色 / color_vibrant_good | 2026-05-25 02:06:00 | 🔗 查看报告 |
# 分析本地含白参考的观赏鱼体侧高清图像(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_color_brightness_assessment_analysis --input /path/to/koi.jpg --open-id your-open-id
# 分析网络含白参考的观赏鱼体侧高清图像/视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_color_brightness_assessment_analysis --url https://example.com/koi.jpg --open-id your-open-id
# 显示历史鲜艳度评估记录清单(自动触发关键词:查看鱼体色历史报告、鲜艳度评分时间序列等)
python -m scripts.smyx_fish_color_brightness_assessment_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_fish_color_brightness_assessment_analysis --input koi.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_fish_color_brightness_assessment_analysis --input koi.jpg --open-id your-open-id --output result.json