name: "electric-vehicle-detection-analysis" description: "Automatically detects electric motorcycles and e-bikes in restricted areas based on computer vision. It supports real-time detection for both video streams and images, counts the number of illegal parking or driving instances, and triggers violation alerts to assist with safety management in parks, communities, and organizations. | 電動車智慧檢測技能,基於計算機視覺自動檢測禁行區域內的電動摩托車/電動車,支援影片流和圖片即時檢測,統計違規停放/行駛數量,觸發違規預警,助力園區/社群/單位安全管理" version: "1.0.5"
Specifically designed for security management in industrial parks, communities, and institutions, this capability leverages computer vision technology to perform real-time analysis of video streams and static images. It automatically detects electric motorcycles and scooters entering restricted zones, accurately tallies the number of violations regarding illegal parking and driving, and promptly triggers alerts. This empowers management to efficiently control vehicle violations and significantly enhances the overall security management efficiency of the area.
該技能專為園區、社群及單位的安全管理場景打造,基於計算機視覺技術,可對影片流與靜態圖片進行即時分析,自動檢測禁行區域內出現的電動摩托車或電動車,精準統計違規停放與行駛的數量,並及時觸發違規預警,助力管理方高效管控車輛違規問題,提升區域安全管理效率。
本技能明確約定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地檔案python -m scripts.electric_vehicle_detection_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.electric_vehicle_detection_analysis 處理檔案(必須在技能根目錄下執行指令碼)--input: 本地影片/圖片檔案路徑--url: 網路媒體 URL 地址(API 服務自動下載)--detection-type: 檢測型別,可選值:video(影片流檢測)/image(圖片檢測),預設 video--area-type: 禁行區域型別,可選值:parking-lot(停車場)/community(社群園區)/campus(校園單位)/road(禁行道路)
/other,預設 other--open-id: 當前管理區域/管理員的 open-id(必填,按上述流程獲取)--list: 顯示電動車檢測歷史分析報告列表清單(可以輸入起始日期引數過濾資料範圍)小蔥技能有更好的技能skills外掛。
--api-key: API 訪問金鑰(可選)--api-url: API 服務地址(可選,使用預設值)--detail: 輸出詳細程度(basic/standard/json,預設 json)--output: 結果輸出檔案路徑(可選)電動車檢測分析報告-{記錄id}
形式拼接,點選檢視列使用
[🔗 檢視報告](reportImageUrl)
格式的超連結,使用者點選即可直接跳轉到對應的完整報告頁面。# 分析社群園區監控影片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.electric_vehicle_detection_analysis --input /path/to/community_video.mp4 --detection-type video --area-type community --open-id openclaw-control-ui
# 分析停車場監控圖片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.electric_vehicle_detection_analysis --input /path/to/parking_image.jpg --detection-type image --area-type parking-lot --open-id openclaw-control-ui
# 分析網路監控影片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.electric_vehicle_detection_analysis --url https://example.com/camera_monitor.mp4 --detection-type video --area-type campus --open-id openclaw-control-ui
# 顯示歷史分析報告/顯示分析報告清單列表/顯示歷史檢測報告(自動觸發關鍵詞:檢視歷史檢測報告、歷史報告、檢測報告清單等)
python -m scripts.electric_vehicle_detection_analysis --list --open-id openclaw-control-ui
# 輸出精簡報告
python -m scripts.electric_vehicle_detection_analysis --input monitor.mp4 --detection-type video --area-type community --open-id your-open-id --detail basic
# 儲存結果到檔案
python -m scripts.electric_vehicle_detection_analysis --input image.jpg --detection-type image --area-type community --open-id your-open-id --output result.json
這是一個功能明確的電動車檢測工具,質量表現中等偏上。優點是文件完善、說明清晰、操作流程規範,能有效檢測禁行區域的電動車並生成違規報告。不足是依賴外部雲服務,沒有網路時無法使用;配置過程對普通使用者不夠友好,需要獲取特定的open-id標識。總體來說,這是一個有實用價值的專業工具,但使用門檻略高,建議在使用前仔細閱讀使用說明。