Install
openclaw skills install smyx-plant-wilting-quantification-analysisAI-powered plant wilting quantification from full-plant images via smart pots or fixed cameras. Detects leaf-stem angle (leaf droop), stem straightness, and leaf turgidity to quantify wilting severity (0-100%). Optionally fuses soil-moisture sensor data to discriminate dehydration (underwatering) vs. waterlogging (root hypoxia), and auto-triggers watering or drainage prompts for precision irrigation. Scenarios: smart pots, home gardening, greenhouses, plant factories. | 通过智能花盆或固定摄像头拍摄植物整体图像,利用AI视觉分析技术检测叶片与茎秆的夹角(叶片下垂角度)、茎秆挺直程度以及叶片舒展度,量化萎蔫程度(0-100%)。可选结合土壤湿度传感器数据,综合判断萎蔫原因是缺水还是水涝(根部缺氧导致)。可自动触发灌溉或排水提示,帮助用户精准浇水。应用场景:智能花盆、家庭园艺、温室大棚、植物工厂。
openclaw skills install smyx-plant-wilting-quantification-analysisAI-powered plant wilting quantification from full-plant images via smart pots or fixed cameras. Detects leaf-stem angle (leaf droop), stem straightness, and leaf turgidity to quantify wilting severity (0-100%). Optionally fuses soil-moisture sensor data to discriminate dehydration (underwatering) vs. waterlogging (root hypoxia), and auto-triggers watering or drainage prompts for precision irrigation. Scenarios: smart pots, home gardening, greenhouses, plant factories.
通过智能花盆或固定摄像头拍摄植物整体图像,利用AI视觉分析技术检测叶片与茎秆的夹角(叶片下垂角度)、茎秆挺直程度以及叶片舒展度,量化萎蔫程度(0-100%)。可选结合土壤湿度传感器数据,综合判断萎蔫原因是缺水还是水涝(根部缺氧导致)。可自动触发灌溉或排水提示,帮助用户精准浇水。应用场景:智能花盆、家庭园艺、温室大棚、植物工厂。
假设你是一个专业的植物生理健康AI。你的任务是分析植物的整体图像(侧视图最佳),计算萎蔫指数(基于叶片与茎秆夹角、茎秆弯曲度等),并可结合土壤湿度数据(若提供)判断萎蔫原因(缺水或水涝)。不要提供具体浇水量,仅输出萎蔫程度和可能原因。
python -m scripts.smyx_plant_wilting_quantification_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_plant_wilting_quantification_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: 结果输出文件路径(可选)| 指标 | 测量方式 | 健康状态 | 轻度萎蔫 | 重度萎蔫 |
|---|---|---|---|---|
| 叶片-茎秆夹角 | 叶片与茎秆夹角 | 30°-60°(向上展开) | 60°-90°(水平) | >90°(下垂) |
| 茎秆挺直度 | 茎秆弯曲程度 | 笔直 | 轻微弯曲 | 明显弯曲/倒伏 |
| 叶片舒展度 | 叶片展开面积比 | 充分展开 | 边缘卷曲 | 严重卷缩/干枯 |
萎蔫指数 = f(叶片夹角, 茎秆挺直度, 叶片舒展度),综合三项指标加权计算 0-100%。
| 萎蔫指数 | 程度 | 视觉表现 | 建议 |
|---|---|---|---|
| 0%-15% | 🟢 健康 | 叶片挺拔舒展,茎秆笔直 | 无需干预 |
| 16%-35% | 🟡 轻度 | 叶片轻微下垂,边缘微卷 | 关注,观察 1-2 小时是否恢复 |
| 36%-60% | 🟠 中度 | 叶片明显下垂,茎秆微弯 | 需要干预,判断缺水/水涝后处理 |
| 61%-100% | 🔴 重度 | 叶片严重下垂/卷缩,茎秆弯曲倒伏 | ⚠️ 紧急处理,重度萎蔫可能不可逆 |
| 特征 | 缺水(干旱) | 水涝(过湿) |
|---|---|---|
| 叶片表现 | 从边缘开始干枯、卷曲、变脆 | 整体发黄、柔软、易脱落 |
| 茎秆 | 可能偏软但通常保持挺直 | 基部发软、发黑 |
| 土壤 | 干燥、开裂 | 湿润、积水、可能有异味 |
| 根系 | 根尖干枯 | 根部腐烂、发黑发臭 |
| 恢复速度 | 浇水后数小时内恢复 | 需排水+通风,恢复较慢 |
| 常见误区 | — | 看到萎蔫就浇水,可能加重水涝 |
关键:水涝导致的萎蔫与缺水外观相似,但处理方式完全相反!错误浇水会加速植物死亡。
| 联动设备 | 缺水场景 | 水涝场景 |
|---|---|---|
| 💧 自动灌溉 | 启动浇水 | 停止浇水 |
| 🌡️ 土壤湿度传感器 | 确认土壤干燥 | 确认土壤过湿 |
| 💨 排风扇/通风 | — | 启动通风加速蒸发 |
| 🔦 补光灯 | — | 关闭(减少蒸腾) |
| 📱 APP 推送 | "缺水,请浇水" | "水涝,请停止浇水并松土" |
植物萎蔫量化报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 对象类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 植物萎蔫量化报告-20260312172200001 | 植物 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地植物图像(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_plant_wilting_quantification_analysis --input /path/to/plant_side.jpg --open-id your-open-id
# 分析网络植物图像(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_plant_wilting_quantification_analysis --url https://example.com/plant.jpg --open-id your-open-id
# 显示历史量化报告/显示报告清单列表
python -m scripts.smyx_plant_wilting_quantification_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_plant_wilting_quantification_analysis --input plant.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_plant_wilting_quantification_analysis --input plant.jpg --open-id your-open-id --output result.json