Install
openclaw skills install smyx-teen-screen-addiction-detection-analysisUsing fixed cameras at home, study rooms or schools, the system analyzes adolescents' posture while using phones or gaming devices: head pitch angle (downward > 45°) and hand-holding-device posture (hand grasp + bent arm). It counts daily cumulative screen-looking time. When continuous screen-looking exceeds a configured threshold (e.g., single session > 30 minutes, or daily total > 2 hours), a 'phone/game addiction' reminder is generated, suggesting parental guidance and healthy eye-use habits. This helps prevent adolescent myopia, cervical-spine issues and gaming addiction. Application scenarios: family study, adolescent bedroom, study rooms, school classrooms. The system monitors in real time and pushes reminders via mobile APP or links to smart devices to issue voice prompts when over-time use is detected. Skill features: long head-down phone use among adolescents easily causes myopia, cervical-spine disease and social barriers. AI auto-monitoring and reminders help parents objectively understand their child's eye-use habits, enabling timely intervention and protecting vision. Can be integrated into smart-home cameras or family-education APPs as a practical family-health management tool. | 通过家庭、自习室或学校固定摄像头,分析青少年使用手机或游戏设备的姿势,检测头部低垂角度(俯仰角大于45°)以及手持设备的姿态(手部抓握且手臂弯曲),统计每日累计低头看屏幕的时长。当连续低头时长超过设定阈值(如单次超过30分钟,或日累计超过2小时)时,输出'沉迷手机/游戏'提醒,建议家长干预并引导健康用眼习惯。该技能有助于预防青少年近视、颈椎问题及游戏成瘾。应用场景:家庭书房、青少年卧室、自习室、学校教室。系统实时监测,当沉迷行为超时时通过手机APP推送提醒或联动智能设备发出语音提示。技能特点:青少年长时间低头看手机,易导致近视、颈椎病、社交障碍等。通过AI自动监测并提醒,可帮助家长客观了解孩子用眼习惯,及时干预,保护视力健康。该技能可集成到智能家居摄像头或家庭教育APP中,成为家庭健康管理的实用工具。
openclaw skills install smyx-teen-screen-addiction-detection-analysisUsing fixed cameras at home, study rooms or schools, the system analyzes adolescents' posture while using phones or gaming devices: head pitch angle (downward > 45°) and hand-holding-device posture (hand grasp + bent arm). It counts daily cumulative screen-looking time. When continuous screen-looking exceeds a configured threshold (e.g., single session > 30 minutes, or daily total > 2 hours), a 'phone/game addiction' reminder is generated, suggesting parental guidance and healthy eye-use habits. This helps prevent adolescent myopia, cervical-spine issues and gaming addiction. Application scenarios: family study, adolescent bedroom, study rooms, school classrooms. The system monitors in real time and pushes reminders via mobile APP or links to smart devices to issue voice prompts when over-time use is detected. Skill features: long head-down phone use among adolescents easily causes myopia, cervical-spine disease and social barriers. AI auto-monitoring and reminders help parents objectively understand their child's eye-use habits, enabling timely intervention and protecting vision. Can be integrated into smart-home cameras or family-education APPs as a practical family-health management tool.
通过家庭、自习室或学校固定摄像头,分析青少年使用手机或游戏设备的姿势,检测头部低垂角度(俯仰角大于45°)以及手持设备的姿态(手部抓握且手臂弯曲),统计每日累计低头看屏幕的时长。当连续低头时长超过设定阈值(如单次超过30分钟,或日累计超过2小时)时,输出'沉迷手机/游戏'提醒,建议家长干预并引导健康用眼习惯。该技能有助于预防青少年近视、颈椎问题及游戏成瘾。应用场景:家庭书房、青少年卧室、自习室、学校教室。系统实时监测,当沉迷行为超时时通过手机APP推送提醒或联动智能设备发出语音提示。技能特点:青少年长时间低头看手机,易导致近视、颈椎病、社交障碍等。通过AI自动监测并提醒,可帮助家长客观了解孩子用眼习惯,及时干预,保护视力健康。该技能可集成到智能家居摄像头或家庭教育APP中,成为家庭健康管理的实用工具。
假设你是一个专业的青少年健康行为监测 AI。你的任务是分析固定摄像头的视频,检测青少年头部姿态(俯仰角)和手持设备姿势,判断是否正在低头看手机或玩游戏。统计单次连续低头时长和每日累计时长,当超过阈值时输出温和、尊重的提醒,并区分写作业 / 看书 / 网课等正常学习行为不计入沉迷时长。不要提供医疗诊断,仅输出基于视觉的行为统计。
looking_at_screen / normal_reading / writing / lifting_head / other 姿态 → 统计单次连续低头时长 + 日累计时长 + 段次数 + 最长单段 + 夜间时长 → 输出 4 档沉迷等级(normal / mild / notable / heavy)+ 友好提醒 + 给家长的日报摘要python -m scripts.smyx_teen_screen_addiction_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.smyx_teen_screen_addiction_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地家庭/自习室/学校固定摄像头视频文件路径--url: 网络家庭/自习室/学校固定摄像头视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,青少年健康行为监测场景默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示青少年沉迷手机/游戏行为识别历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)青少年屏幕沉迷报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 沉迷等级/累计时长/最长单段 | 分析时间 | 点击查看 |
|---|---|---|---|
| 青少年屏幕沉迷报告-20260312172200001 | notable / 日累计 2h35m / 最长 52min | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地青少年使用屏幕视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_teen_screen_addiction_detection_analysis --input /path/to/study_room.mp4 --open-id your-open-id
# 分析网络青少年使用屏幕视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_teen_screen_addiction_detection_analysis --url https://example.com/study_room.mp4 --open-id your-open-id
# 显示历史青少年沉迷手机/游戏报告(自动触发关键词:查看孩子沉迷手机历史报告、家长日报清单等)
python -m scripts.smyx_teen_screen_addiction_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_teen_screen_addiction_detection_analysis --input sr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_teen_screen_addiction_detection_analysis --input sr.mp4 --open-id your-open-id --output result.json