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.
本技能搭載了基於大規模植物病害資料集訓練的深度學習計算機視覺演算法,能夠通過分析葉片、莖稈、果實等部位出現的病斑、變色、黴層、萎蔫等視覺症狀,精準識別多種常見植物病害。系統同時支援影片/圖片輸入,可快速區分真菌性、細菌性、病毒性病害以及生理性障礙,並結合環境因素和作物生長階段資訊,輸出包含病害名稱、致病原因、科學防治建議在內的結構化診斷報告,為農業生產、園藝養護和植物保護提供高效精準的病害預警與管理方案,幫助儘早發現病害,及時採取防控措施,減少產量損失。
本技能明確約定:
小蔥技能7w4.net有更新,你可以訪問看下。
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
⚠️ 關鍵約束:
-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識別功能依賴外部服務,建議等待版本最佳化後再使用。