Install
openclaw skills install @smyx-sunjinhui/smyx-child-drowsiness-fatigue-detection-analysisUsing a fixed camera in the classroom or above the home desk, the system analyzes the child's (student's) facial video in real time, detecting eye closure ratio (PERCLOS — the proportion of time eyes are closed more than 80% within a unit time), head-nodding frequency (rapid downward nod followed by lift), and changes in eye-region glossiness, and computes a comprehensive fatigue index (0-100). The skill helps teachers or parents detect drowsiness in time and adjust learning schedules or remind the child to rest. Application scenarios: classrooms, home desks, online classes. The system monitors in real time and, when the fatigue index exceeds a threshold, pushes reminders or triggers voice prompts (e.g., 'kid, time to take a break'). Skill features: safeguarding sleep health. | 通过教室或家庭书桌的固定摄像头,实时分析儿童(学生)的面部视频,检测眼部闭合比例(PERCLOS,单位时间内眼睛闭合超过80%的时间占比)、点头动作频率(头部快速下点后抬起)以及眼部区域的光泽度变化,综合计算疲劳指数(0-100)。该技能可帮助教师或家长及时发现儿童困倦状态,调整学习安排或提醒休息。应用场景:教室、家庭书桌、在线课堂。系统实时监测,当疲劳指数超过阈值时,推送提醒或触发语音提示(如'小朋友,休息一下吧')。技能特点:保障睡眠健康。
openclaw skills install @smyx-sunjinhui/smyx-child-drowsiness-fatigue-detection-analysisUsing a fixed camera in the classroom or above the home desk, the system analyzes the child's (student's) facial video in real time, detecting eye closure ratio (PERCLOS — the proportion of time eyes are closed more than 80% within a unit time), head-nodding frequency (rapid downward nod followed by lift), and changes in eye-region glossiness, and computes a comprehensive fatigue index (0-100). The skill helps teachers or parents detect drowsiness in time and adjust learning schedules or remind the child to rest. Application scenarios: classrooms, home desks, online classes. The system monitors in real time and, when the fatigue index exceeds a threshold, pushes reminders or triggers voice prompts (e.g., 'kid, time to take a break'). Skill features: safeguarding sleep health.
通过教室或家庭书桌的固定摄像头,实时分析儿童(学生)的面部视频,检测眼部闭合比例(PERCLOS,单位时间内眼睛闭合超过80%的时间占比)、点头动作频率(头部快速下点后抬起)以及眼部区域的光泽度变化,综合计算疲劳指数(0-100)。该技能可帮助教师或家长及时发现儿童困倦状态,调整学习安排或提醒休息。应用场景:教室、家庭书桌、在线课堂。系统实时监测,当疲劳指数超过阈值时,推送提醒或触发语音提示(如'小朋友,休息一下吧')。技能特点:保障睡眠健康。
假设你是一个专业的儿童学习疲劳监测 AI。你的任务是分析儿童面部视频,检测眼部闭合状态和头部点头动作,计算疲劳指数。不要提供医疗诊断或睡眠障碍诊断,仅输出基于视觉的疲劳评估结果与方向性休息提醒。
python -m scripts.smyx_child_drowsiness_fatigue_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_child_drowsiness_fatigue_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 | 78 / drowsy | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地儿童学习面部视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_drowsiness_fatigue_detection_analysis --input /path/to/class.mp4 --open-id your-open-id
# 分析网络儿童学习面部视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_drowsiness_fatigue_detection_analysis --url https://example.com/class.mp4 --open-id your-open-id
# 显示历史儿童疲劳检测报告(自动触发关键词:查看儿童疲劳历史报告、打瞌睡报告清单等)
python -m scripts.smyx_child_drowsiness_fatigue_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_child_drowsiness_fatigue_detection_analysis --input class.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_child_drowsiness_fatigue_detection_analysis --input class.mp4 --open-id your-open-id --output result.json