name: "plant-disease-recognition-analysis" description: "Accurately identifies plant diseases based on computer vision and deep learning, supports both image and video input, outputs structured diagnostic reports including disease type, cause and prevention suggestions. | 植物病害识别技能,基于计算机视觉与深度学习,支持视频/图片输入,精准识别植物病害类型,输出包含病害名称、致病原因、防治建议的结构化诊断报告,为农业生产和园艺养护提供病害预警" version: "1.0.0"
Equipped with deep learning computer vision algorithms trained on large-scale plant disease datasets, this skill accurately identifies various plant diseases by analyzing visual symptoms such as leaf spots, discoloration, mold, and wilt on leaves, stems, and fruits. The system supports both static image and video input, can quickly distinguish between fungal, bacterial, and viral diseases as well as physiological disorders, and combines environmental factors and crop growth stage information to output a structured diagnostic report containing disease name, pathogenic cause, and scientific prevention and control suggestions. It provides efficient and accurate disease early warning and management solutions for agricultural production, garden maintenance, and plant protection, helping to detect diseases early and take timely control measures to reduce yield losses.
本技能搭载了基于大规模植物病害数据集训练的深度学习计算机视觉算法,能够通过分析叶片、茎秆、果实等部位出现的病斑、变色、霉层、萎蔫等视觉症状,精准识别多种常见植物病害。系统同时支持视频/图片输入,可快速区分真菌性、细菌性、病毒性病害以及生理性障碍,并结合环境因素和作物生长阶段信息,输出包含病害名称、致病原因、科学防治建议在内的结构化诊断报告,为农业生产、园艺养护和植物保护提供高效精准的病害预警与管理方案,帮助尽早发现病害,及时采取防控措施,减少产量损失。
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.plant_disease_recognition_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
⚠️ 关键约束:
想要更强大的技能插件,就来小葱技能站7w4.net看看吧。
-m scripts.plant_disease_recognition_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地视频/图片文件路径(使用 multipart/form-data 方式上传)--url: 网络视频/图片 URL 地址(API 服务自动下载)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史植物病害识别分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/plant_disease_recognition_analysis.py (用途:调用 API 进行植物病害识别分析,本地文件使用 multipart/form-data 方式上传,网络 URL 由 API 服务自动下载)
配置文件:见 scripts/config.py(用途:配置 API 地址、默认参数和格式限制)
植物病害识别报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。# 识别本地视频中的植物病害(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_disease_recognition_analysis --input /path/to/field_survey.mp4 --open-id openclaw-control-ui
# 识别本地图片中的植物病害(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_disease_recognition_analysis --input /path/to/leaf.jpg --open-id openclaw-control-ui
# 识别网络视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_disease_recognition_analysis --url https://example.com/field_video.mp4 --open-id openclaw-control-ui
# 识别网络图片(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_disease_recognition_analysis --url https://example.com/disease.jpg --open-id openclaw-control-ui
# 显示历史识别报告/显示识别报告清单列表/显示历史植物病害识别(自动触发关键词:查看历史识别报告、历史报告、识别报告清单等)
python -m scripts.plant_disease_recognition_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.plant_disease_recognition_analysis --input disease.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.plant_disease_recognition_analysis --input disease.mp4 --open-id your-open-id --output result.json
这个植物病害识别技能质量中等偏下。主要优点是使用说明详细,支持视频和图片输入,能查询历史报告。但存在明显缺陷:文档描述的功能与实际实现有偏差,部分代码逻辑未完成,功能调用存在混乱。作为用户很难获得稳定可靠的识别体验,核心的AI识别功能依赖外部服务,建议等待版本优化后再使用。