Install
openclaw skills install smyx-leaf-curling-scorch-diagnosis-analysisUsing agricultural cameras to capture high-resolution images of plant leaves, AI vision techniques detect leaf curling direction (up-curling or down-curling) and the distribution of leaf-margin scorch (old vs new leaves, tip vs margin). Combined with optional soil-moisture sensor data, the system jointly judges the most likely cause of curling/scorching (drought stress, diseases such as powdery mildew or virus, pesticide damage, fertilizer burn, etc.). This helps farmers quickly locate the problem and take targeted action. Application scenarios: open-field crops, greenhouse vegetables, orchards. The system periodically inspects fields; when curling or scorching is detected it automatically analyzes the cause and issues a diagnosis (e.g., 'leaves curled upward with margin scorch, soil moisture low — likely drought, suggest irrigation'). Skill features: leaf curling and margin scorch are common but easy to misjudge because drought, diseases and chemical damage share similar symptoms. AI-assisted visual diagnosis helps farmers respond correctly in time and reduce losses. Can be integrated into agricultural IoT systems, UAV inspection platforms, or mobile apps. | 通过农业摄像头拍摄植物叶片的高清图像,利用AI视觉分析技术检测叶片卷曲方向(上卷或下卷)、焦边(叶缘干枯)的分布特征(老叶/新叶、叶尖/叶缘),并可结合土壤湿度传感器数据(可选),综合判断卷叶/焦边的主要原因(干旱胁迫、病害如白粉病/病毒病、药害、肥害等)。该技能有助于农民快速定位问题,采取针对性措施。应用场景:大田作物、温室蔬菜、果园。系统定期巡检,发现卷叶或焦边时自动分析原因,输出诊断及建议(如'叶片上卷、叶缘焦枯,土壤湿度偏低,可能干旱,建议灌溉')。技能特点:卷叶和焦边是农民常遇到的问题,但干旱、病害、药害症状相似,易误判。通过AI视觉辅助诊断,可帮助农民早期采取正确措施,减少损失。该技能可集成到农业物联网系统、无人机巡检平台或手机APP中。
openclaw skills install smyx-leaf-curling-scorch-diagnosis-analysisUsing agricultural cameras to capture high-resolution images of plant leaves, AI vision techniques detect leaf curling direction (up-curling or down-curling) and the distribution of leaf-margin scorch (old vs new leaves, tip vs margin). Combined with optional soil-moisture sensor data, the system jointly judges the most likely cause of curling/scorching ( drought stress, diseases such as powdery mildew or virus, pesticide damage, fertilizer burn, etc.). This helps farmers quickly locate the problem and take targeted action. Application scenarios: open-field crops, greenhouse vegetables, orchards. The system periodically inspects fields; when curling or scorching is detected it automatically analyzes the cause and issues a diagnosis (e.g., 'leaves curled upward with margin scorch, soil moisture low — likely drought, suggest irrigation'). Skill features: leaf curling and margin scorch are common but easy to misjudge because drought, diseases and chemical damage share similar symptoms. AI-assisted visual diagnosis helps farmers respond correctly in time and reduce losses. Can be integrated into agricultural IoT systems, UAV inspection platforms, or mobile apps.
通过农业摄像头拍摄植物叶片的高清图像,利用AI视觉分析技术检测叶片卷曲方向(上卷或下卷)、焦边(叶缘干枯)的分布特征(老叶/新叶、叶尖/叶缘),并可结合土壤湿度传感器数据(可选),综合判断卷叶/焦边的主要原因(干旱胁迫、病害如白粉病/病毒病、药害、肥害等)。该技能有助于农民快速定位问题,采取针对性措施。应用场景:大田作物、温室蔬菜、果园。系统定期巡检,发现卷叶或焦边时自动分析原因,输出诊断及建议(如'叶片上卷、叶缘焦枯,土壤湿度偏低,可能干旱,建议灌溉' )。技能特点:卷叶和焦边是农民常遇到的问题,但干旱、病害、药害症状相似,易误判。通过AI视觉辅助诊断,可帮助农民早期采取正确措施,减少损失。该技能可集成到农业物联网系统、无人机巡检平台或手机APP中。
**假设你是一个专业的植物逆境诊断 AI。你的任务是分析植物叶片的图像,识别卷曲方向(上卷/下卷)、焦边分布(叶尖/叶缘、老叶/新叶),并可结合土壤湿度数据(若提供),判断引起卷叶/焦边的主要原因。不要提供具体的农药或肥料名称、剂量,仅输出基于视觉(及可选土壤湿度)的可能原因排序与方向性建议。 **
python -m scripts.smyx_leaf_curling_scorch_diagnosis_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_leaf_curling_scorch_diagnosis_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: 结果输出文件路径(可选)必要脚本:见 scripts/smyx_leaf_curling_scorch_diagnosis_analysis.py( 用途:调用 API 进行植物卷叶/焦边识别(干旱/病害)诊断分析,本地文件上传,网络 URL 由 API 服务自动下载)
卷叶焦边诊断报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 作物种类 | 分析时间 | 点击查看 |
|---|---|---|---|
| 卷叶焦边诊断报告-20260312172200001 | 番茄 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地叶片图像(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_leaf_curling_scorch_diagnosis_analysis --input /path/to/leaf.jpg --open-id your-open-id
# 分析网络叶片图像/视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_leaf_curling_scorch_diagnosis_analysis --url https://example.com/leaf.jpg --open-id your-open-id
# 显示历史诊断报告/卷叶焦边诊断清单(自动触发关键词:查看卷叶焦边历史报告、叶片诊断报告清单等)
python -m scripts.smyx_leaf_curling_scorch_diagnosis_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_leaf_curling_scorch_diagnosis_analysis --input leaf.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_leaf_curling_scorch_diagnosis_analysis --input leaf.jpg --open-id your-open-id --output result.json