Install
openclaw skills install smyx-chinese-herbal-ingredient-trend-analysisAI-powered active-ingredient accumulation trend assessment for medicinal herbs (e.g. honeysuckle, wolfberry, astragalus, danshen). Uses high-resolution leaf images captured by fixed cameras or drones in TCM cultivation bases, analyzes leaf color saturation, hue angle, relative chlorophyll content (estimated via color indices) and leaf thickness (inferred from edge focus / silhouette), and compares against the cultivar's standard reference atlas (typical features at peak active-ingredient stage) to output an accumulation trend level (Low / Medium / High / Peak). Helps determine the optimal harvest window and improve herb quality. Scenarios: TCM planting bases, GAP bases, herb cooperatives, raw-material bases for pharmaceutical companies. | 通过中药种植基地的固定摄像头或无人机拍摄药用植物(如金银花、枸杞、黄芪、丹参等)叶片的高清图像,利用AI视觉分析技术评估叶片颜色饱和度、色相角、叶绿素相对含量(通过颜色指数估算)以及叶片厚度(通过边缘聚焦或侧影估算),与品种标准图谱(特定生长阶段/有效成分积累峰值期的典型特征)进行对比,输出有效成分积累趋势等级(低/中/高/峰值)。该技能有助于确定最佳采收期,提高药材品质。应用场景:中药种植基地、GAP种植基地、中药材合作社、药企原料基地。
openclaw skills install smyx-chinese-herbal-ingredient-trend-analysisAI-powered active-ingredient accumulation trend assessment for medicinal herbs (e.g. honeysuckle, wolfberry, astragalus, danshen). Uses high-resolution leaf images captured by fixed cameras or drones in TCM cultivation bases, analyzes leaf color saturation, hue angle, relative chlorophyll content (estimated via color indices) and leaf thickness (inferred from edge focus / silhouette), and compares against the cultivar's standard reference atlas (typical features at peak active-ingredient stage) to output an accumulation trend level (Low / Medium / High / Peak). Helps determine the optimal harvest window and improve herb quality. Scenarios: TCM planting bases, GAP bases, herb cooperatives, raw-material bases for pharmaceutical companies.
通过中药种植基地的固定摄像头或无人机拍摄药用植物(如金银花、枸杞、黄芪、丹参等)叶片的高清图像,利用AI视觉分析技术评估叶片颜色饱和度、色相角、叶绿素相对含量(通过颜色指数估算)以及叶片厚度(通过边缘聚焦或侧影估算),与品种标准图谱(特定生长阶段/有效成分积累峰值期的典型特征)进行对比,输出有效成分积累趋势等级(低/中/高/峰值)。该技能有助于确定最佳采收期,提高药材品质。应用场景:中药种植基地、GAP种植基地、中药材合作社、药企原料基地。
**假设你是一个专业的中草药栽培与质量评价 AI。你的任务是分析药用植物叶片的高清图像,评估叶片颜色饱和度、绿色深度(或红/黄/蓝色相)、叶绿素指数(如归一化植被指数模拟值)以及叶片厚度(可通过叶缘清晰度/聚焦深度间接推断),并与该品种的标准参考图谱(含有效成分积累高峰期的典型特征)进行比对,输出当前有效成分积累趋势等级。不要提供化学检测数据,仅基于视觉特征给出预测。 **
能力包含:叶片颜色饱和度评估、色相角分析、叶绿素相对含量估算(颜色指数模拟)、叶片厚度间接推断(边缘聚焦/侧影)、与品种标准图谱比对、有效成分积累趋势等级判定(低 / 中 / 高 / 峰值)、最佳采收期建议
python -m scripts.smyx_chinese_herbal_ingredient_trend_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_chinese_herbal_ingredient_trend_analysis 处理图像/视频文件(**必须在技能根目录下运行脚本
**)--input: 本地图像/视频文件路径--url: 网络图像/视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,中药材场景使用 other,默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示有效成分趋势历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/smyx_chinese_herbal_ingredient_trend_analysis.py( 用途:调用 API 进行有效成分趋势评估,本地文件上传,网络 URL 由 API 服务自动下载)
中草药有效成分趋势报告-{记录id}
形式拼接, "点击查看"列使用[🔗 查看报告](reportImageUrl)格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 药材品种 | 分析时间 | 点击查看 |
|---|---|---|---|
| 中草药有效成分趋势报告-20260522230400001 | 金银花 | 2026-05-22 23:04: | |
| 00 | 🔗 查看报告 |
# 分析本地药用植物叶片图像/视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_chinese_herbal_ingredient_trend_analysis --input /path/to/herb_leaf.jpg --open-id your-open-id
# 分析网络药用植物叶片图像/视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_chinese_herbal_ingredient_trend_analysis --url https://example.com/herb_leaf.jpg --open-id your-open-id
# 显示历史分析报告/显示分析报告清单列表/显示历史中药趋势报告(自动触发关键词:查看历史中药趋势报告、历史报告、有效成分趋势清单等)
python -m scripts.smyx_chinese_herbal_ingredient_trend_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_chinese_herbal_ingredient_trend_analysis --input herb.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_chinese_herbal_ingredient_trend_analysis --input herb.jpg --open-id your-open-id --output result.json