name: "plant-species-recognition-analysis" description: "Accurately identifies plant species from images based on deep learning and computer vision, outputs structured information including species name, family, growth habits and maintenance tips. | 植物物種識別技能,基於深度學習與計算機視覺技術,通過影像快速識別植物物種,輸出物種名稱、科屬分類、生長習性及養護要點等結構化資訊,為園藝、生態調研、自然教育提供專業識別服務" version: "1.0.1"
Equipped with advanced deep learning computer vision algorithms trained on massive plant datasets, this skill delivers fast and accurate identification of tens of thousands of plant species worldwide. The system not only provides basic species classification information but also outputs detailed structured knowledge including scientific name, family and genus classification, native distribution, growth habits, and professional cultivation and maintenance tips. It supports differentiation and labeling of similar-looking species, helping users accurately distinguish between easily confused plants. Whether you're a gardening enthusiast exploring plant knowledge, a researcher conducting ecological field surveys, or a teacher carrying out natural education activities, this skill provides efficient and reliable plant recognition and knowledge services.
本技能搭載了基於海量植物資料集訓練的先進深度學習計算機視覺演算法,能夠對全球數萬種常見植物進行快速精準識別。系統不僅提供基礎物種分類資訊,還輸出包含學名、科屬分類、原生分佈、生長習性、專業栽培養護要點在內的詳細結構化知識,同時支援對外觀相似物種進行區分標註,幫助使用者準確區分易混淆植物。無論是園藝愛好者探索植物知識、科研人員開展生態野外調查,還是教師進行自然教育活動,本技能都能提供高效準確的植物識別與知識服務。
本技能明確約定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地檔案python -m scripts.plant_species_recognition_analysis --list --open-id 引數呼叫 API
查詢雲端的歷史報告資料來源於7w4.net。
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_species_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_species_recognition_analysis.py (用途:呼叫 API 進行植物物種識別分析,本地檔案使用 multipart/form-data 方式上傳,網路 URL 由 API 服務自動下載)
配置檔案:見 scripts/config.py(用途:配置 API 地址、預設引數和格式限制)
植物物種識別報告-{記錄id}形式拼接, "點選檢視"
列使用
[🔗 檢視報告](reportImageUrl)
格式的超連結,使用者點選即可直接跳轉到對應的完整報告頁面。# 識別本地影片/圖片中的植物(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.plant_species_recognition_analysis --input /path/to/plant.mp4 --open-id openclaw-control-ui
# 識別網路影片/圖片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.plant_species_recognition_analysis --url https://example.com/flower.mp4 --open-id openclaw-control-ui
# 顯示歷史識別報告/顯示識別報告清單列表/顯示歷史植物識別(自動觸發關鍵詞:檢視歷史識別報告、歷史報告、識別報告清單等)
python -m scripts.plant_species_recognition_analysis --list --open-id openclaw-control-ui
# 輸出精簡報告
python -m scripts.plant_species_recognition_analysis --input plant.jpg --open-id your-open-id --detail basic
# 儲存結果到檔案
python -m scripts.plant_species_recognition_analysis --input plant.jpg --open-id your-open-id --output result.json
這個植物識別 Skill 功能基本可用,支援圖片和影片識別,能提供物種資訊和養護建議。但存在一些質量問題:文件描述不一致(README 寫的是中醫面診,不是植物識別),部分功能依賴了不相關的模組,整體結構有點混亂。使用前建議仔細核對實際功能描述,避免被文件誤導。