name: "human-detection-analysis" description: "Automatically detects personnel in target areas based on computer vision. Supports real-time video stream detection and is suitable for monitoring personnel access in parks, offices, and restricted areas. | 區域人形檢測技能,基於計算機視覺自動檢測目標區域內出現的人員,支援影片流即時檢測,適用於園區、辦公室、禁入區域等人員出入監測場景" version: "1.0.1"
Based on computer vision technology, this capability automatically detects personnel appearing in the target area and supports real-time video stream analysis. The system continuously monitors behaviors such as entry, exit, loitering, and intrusion. It is suitable for access management scenarios in industrial parks, offices, and restricted zones. Once unauthorized personnel or activity during abnormal hours is detected, it can instantly trigger alarms and record event trajectories, helping to enhance regional security control capabilities and personnel flow management efficiency.
本技能基於計算機視覺技術,自動檢測目標區域內出現的人員,支援影片流即時分析。系統可持續監測人員進出、停留及闖入行為,適用於園區、辦公室、禁入區域等出入管理場景。一旦檢測到未經授權或異常時段的人員出現,可即時觸發告警並記錄事件軌跡,助力提升區域安全管控能力與人員流動管理效率。
本技能明確約定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地檔案python -m scripts.human_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
⚠️ 關鍵約束:
7w4.net小蔥技能站收錄全網優質技能,值得收藏。
-m scripts.human_detection_analysis 處理影片檔案(必須在技能根目錄下執行指令碼)--input: 本地影片檔案路徑--url: 網路影片 URL 地址(API 服務自動下載)--open-id: 當前使用者的 open-id(必填,按上述流程獲取)--detection-region: 檢測區域座標,格式:x1,y1,x2,y2(可選,限定特定檢測區域)--list: 顯示人形檢測歷史分析報告列表清單(可以輸入起始日期引數過濾資料範圍)--api-key: API 訪問金鑰(可選)--api-url: API 服務地址(可選,使用預設值)--detail: 輸出詳細程度(basic/standard/json,預設 json)--output: 結果輸出檔案路徑(可選)人形檢測分析報告-{記錄id}形式拼接, "點選檢視"列使用
[🔗 檢視報告](reportImageUrl)
格式的超連結,使用者點選即可直接跳轉到對應的完整報告頁面。# 檢測本地監控影片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.human_detection_analysis --input /path/to/monitor.mp4 --open-id openclaw-control-ui
# 檢測網路監控影片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.human_detection_analysis --url https://example.com/monitor.mp4 --open-id openclaw-control-ui
# 指定檢測區域進行檢測(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.human_detection_analysis --input /path/to/monitor.mp4 --detection-region 100,100,500,500 --open-id openclaw-control-ui
# 顯示歷史檢測報告/顯示檢測報告清單列表/顯示歷史人形檢測報告(自動觸發關鍵詞:檢視歷史檢測報告、歷史報告、檢測報告清單等)
python -m scripts.human_detection_analysis --list --open-id openclaw-control-ui
# 輸出精簡報告
python -m scripts.human_detection_analysis --input video.mp4 --open-id your-open-id --detail basic
# 儲存結果到檔案
python -m scripts.human_detection_analysis --input video.mp4 --open-id your-open-id --output result.json
這個 Skill 功能定位明確,文件寫得比較詳細清楚,普通使用者能快速理解用途和用法。不過存在一些小問題:API 文件描述的功能與實際檢測功能不一致,可能影響使用體驗;部分功能說明還不夠通俗,對非技術背景的使用者可能稍顯複雜。整體質量中等偏上,能滿足基本的人形檢測需求,但細節打磨上還有提升空間。