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
```
在执行玩手机行为监测分析前,必须按以下优先级顺序获取 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: 本地视频/图片文件路径--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: 结果输出文件路径(可选)进行玩手机行为分析,本地文件上传,网络 URL 由 API 服务自动下载)
PHONE_USAGE_MONITORING_ANALYSIS)
表格格式输出,包含"
报告名称"、"检测类型"、"分析时间"、"点击查看"四列,其中"报告名称"列使用玩手机行为监测报告-{记录id}形式拼接, "点击查看"
列使用
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
| 报告名称 | 检测类型 | 分析时间 | 点击查看 |
|----------|----------|----------|----------|
| 玩手机行为监测报告 -20260312172200001 | 视频检测 | 2026-03-12 17:22:
00 | 🔗 查看报告 |
# 分析开放办公区视频(以下只是示例,禁止直接使用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
共 2 个版本