Install
openclaw skills install smyx-driver-blink-fatigue-detection-analysisUsing an in-cabin DMS camera, the system analyzes the driver's facial video in real time, detects eye open/closed state, calculates blink rate per minute (normal range 15-20 blinks/min), and identifies single-blink closure duration. When blink rate drops abnormally low (e.g., < 10 blinks/min) or a single eye-closure exceeds 2 seconds (microsleep precursor), it issues a fatigue-driving alert, triggering in-cabin voice reminders or seat-vibration, helping prevent accidents caused by drowsy driving. Application scenarios: passenger cars, commercial vehicles, ride-hailing fleets, freight fleets. The system monitors in real time and on detection raises audio/visual alerts and uploads events to the fleet-management platform. Skill features: drowsy driving is a major cause of traffic accidents. AI real-time detection of abnormal blinking and microsleep can promptly remind the driver and reduce accident risk. Can be integrated into dashcams, smart cockpits, or ride-hailing safety systems to enhance driving safety. | 通过车载DMS摄像头实时分析驾驶员面部视频,检测眼部开闭状态,计算每分钟眨眼频率(正常约为15-20次/分钟),并识别闭眼持续时间。当眨眼频率异常降低(如<10次/分钟)或出现单次闭眼超过2秒(微睡眠前兆)时,输出疲劳驾驶预警,联动车内语音提醒或震动座椅,预防因疲劳导致的事故。应用场景:乘用车、商用车、网约车、货运车队。系统实时监测,当检测到疲劳迹象时发出声光报警,并上传至车队管理平台。技能特点:疲劳驾驶是交通事故的重要原因。通过AI实时检测眨眼异常和微睡眠,可及时提醒驾驶员,降低事故风险。该技能可集成到行车记录仪、智能座舱或网约车安全系统中,提升驾驶安全。
openclaw skills install smyx-driver-blink-fatigue-detection-analysisUsing an in-cabin DMS camera, the system analyzes the driver's facial video in real time, detects eye open/closed state, calculates blink rate per minute (normal range 15-20 blinks/min), and identifies single-blink closure duration. When blink rate drops abnormally low (e.g., < 10 blinks/min) or a single eye-closure exceeds 2 seconds (microsleep precursor), it issues a fatigue-driving alert, triggering in-cabin voice reminders or seat-vibration, helping prevent accidents caused by drowsy driving. Application scenarios: passenger cars, commercial vehicles, ride-hailing fleets, freight fleets. The system monitors in real time and on detection raises audio/visual alerts and uploads events to the fleet-management platform. Skill features: drowsy driving is a major cause of traffic accidents. AI real-time detection of abnormal blinking and microsleep can promptly remind the driver and reduce accident risk. Can be integrated into dashcams, smart cockpits, or ride-hailing safety systems to enhance driving safety.
通过车载DMS摄像头实时分析驾驶员面部视频,检测眼部开闭状态,计算每分钟眨眼频率(正常约为15-20次/分钟),并识别闭眼持续时间。当眨眼频率异常降低(如<10次/分钟)或出现单次闭眼超过2秒(微睡眠前兆)时,输出疲劳驾驶预警,联动车内语音提醒或震动座椅,预防因疲劳导致的事故。应用场景:乘用车、商用车、网约车、货运车队。系统实时监测,当检测到疲劳迹象时发出声光报警,并上传至车队管理平台。技能特点:疲劳驾驶是交通事故的重要原因。通过AI实时检测眨眼异常和微睡眠,可及时提醒驾驶员,降低事故风险。该技能可集成到行车记录仪、智能座舱或网约车安全系统中,提升驾驶安全。
假设你是一个专业的驾驶员疲劳监测 AI。你的任务是分析驾驶员面部视频,检测眼部状态(睁开/闭合),计算眨眼频率(次/分钟)和单次闭眼持续时间。当眨眼频率低于正常阈值或出现长时间闭眼时,输出疲劳预警。不要提供医疗诊断或睡眠障碍诊断,仅输出基于视觉的疲劳指标与方向性预警提示。
python -m scripts.smyx_driver_blink_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_driver_blink_fatigue_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地车载 DMS 驾驶员面部视频文件路径--url: 网络车载 DMS 驾驶员面部视频 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 | severe(眨眼 8/min + 1 次 2.4s 微睡眠) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地车载 DMS 驾驶员视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_driver_blink_fatigue_detection_analysis --input /path/to/dms.mp4 --open-id your-open-id
# 分析网络车载 DMS 驾驶员视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_driver_blink_fatigue_detection_analysis --url https://example.com/dms.mp4 --open-id your-open-id
# 显示历史驾驶员疲劳检测报告(自动触发关键词:查看驾驶员疲劳历史报告、疲劳驾驶预警清单等)
python -m scripts.smyx_driver_blink_fatigue_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_driver_blink_fatigue_detection_analysis --input dms.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_driver_blink_fatigue_detection_analysis --input dms.mp4 --open-id your-open-id --output result.json