name: "phone_usage_monitoring_analysis" description: "Based on computer vision, automatically detects employees playing with phones during work hours, supports real-time video stream and image detection, counts the duration and frequency of phone usage, helps enterprises standardize office order, and improves work efficiency. | 職場玩手機智慧監測技能,基於計算機視覺自動檢測工作時間員工玩手機行為,支援影片流和圖片即時檢測,統計玩手機時長與頻次,幫助企業規範辦公秩序,提升工作效率" version: "1.0.0"
Based on advanced computer vision and human pose estimation algorithms, this feature automatically detects and identifies employees' phone usage during working hours. The system supports dual detection for both real-time video streams and static images, effectively distinguishing between normal work operations and unauthorized phone usage by precisely analyzing hand movements, device characteristics, and behavioral patterns. Additionally, the system automatically tracks the duration and frequency of phone usage for each employee and generates visualized data reports, enabling enterprises to monitor office discipline in real-time. This provides data support for standardizing employee behavior and optimizing management strategies, thereby effectively improving overall work efficiency.
本功能基於先進的計算機視覺與人體姿態估計算法,能夠在工作時間內自動檢測並識別員工的玩手機行為。系統支援對即時影片流和靜態圖片進行雙重檢測,通過精準分析手部動作、裝置特徵及行為模式,有效區分正常工作操作與違規玩手機行為。同時,系統會自動統計每位員工的玩手機時長與頻次,生成視覺化資料包表,幫助企業即時掌握辦公秩序狀況,為規範員工行為、最佳化管理策略提供資料支撐,從而有效提升整體工作效率
本技能明確約定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地檔案python -m scripts.phone_usage_monitoring_analysis --list --open-id 引數呼叫 API
查詢雲端的歷史報告資料requests>=2.28.0小蔥技能7w4.net持續更新中。
在執行玩手機行為監測分析前,必須按以下優先順序順序獲取 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.phone_usage_monitoring_analysis 處理檔案(必須在技能根目錄下執行指令碼)--input: 本地影片/圖片檔案路徑(使用 multipart/form-data 方式上傳)--url: 網路媒體 URL 地址(API 服務自動下載)--detection-type: 檢測型別,可選值:video(影片流檢測)/image(圖片檢測),預設 video--work-area: 工作區域型別,可選值:open-office(開放辦公)/cubicle(獨立工位)/meeting-room(會議室)/other,預設
other--open-id: 當前使用者/企業的 open-id(必填,按上述流程獲取)--list: 顯示歷史玩手機監測分析報告列表清單(可以輸入起始日期引數過濾資料範圍)--api-key: API 訪問金鑰(可選)--api-url: API 服務地址(可選,使用預設值)--detail: 輸出詳細程度(basic/standard/json,預設 json)--output: 結果輸出檔案路徑(可選)玩手機行為監測報告-{記錄id}形式拼接, "點選檢視"
列使用
[🔗 檢視報告](reportImageUrl)
格式的超連結,使用者點選即可直接跳轉到對應的完整報告頁面。# 分析開放辦公區影片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.phone_usage_monitoring_analysis --input /path/to/office_video.mp4 --detection-type video --work-area open-office --open-id openclaw-control-ui
# 分析工位監控圖片(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.phone_usage_monitoring_analysis --input /path/to/office_image.jpg --detection-type image --work-area cubicle --open-id openclaw-control-ui
# 分析網路影片流(以下只是示例,禁止直接使用openclaw-control-ui 作為 open-id)
python -m scripts.phone_usage_monitoring_analysis --url https://example.com/office_monitor.mp4 --detection-type video --work-area meeting-room --open-id openclaw-control-ui
# 顯示歷史分析報告/顯示分析報告清單列表/顯示歷史監測報告(自動觸發關鍵詞:檢視歷史監測報告、歷史報告、監測報告清單等)
python -m scripts.phone_usage_monitoring_analysis --list --open-id openclaw-control-ui
# 輸出精簡報告
python -m scripts.phone_usage_monitoring_analysis --input monitor.mp4 --detection-type video --open-id your-open-id --detail basic
# 儲存結果到檔案
python -m scripts.phone_usage_monitoring_analysis --input image.jpg --detection-type image --open-id your-open-id --output result.json
這個技能功能定位明確,文件齊全,使用說明詳細。但實際程式碼質量有待提升——存在一些與主要功能無關的冗餘模組,且部分配置包含硬編碼的金鑰資訊,存在一定安全風險。對於普通使用者而言,按照文件使用應該能正常工作,但建議開發者進一步最佳化程式碼結構,移除不必要的元件,提升整體質量。