Install
openclaw skills install smyx-driver-flushing-sweat-detection-analysisUsing an in-cabin DMS camera, the system analyzes the driver's facial video in real time, detecting skin color variation (flush index, derived from red-channel ratio in RGB or skin-color models) and sweat-droplet / reflective area (via image texture and reflection features). When the flush index rises significantly (possibly indicating elevated blood pressure, fever or strong emotion) or the sweating area exceeds the threshold (possibly indicating heat stress, hypoglycemia or cardiac issues), it outputs a health-risk reminder and suggests the driver to rest or seek medical help. The skill aims to help drivers stay aware of their physical state and avoid accidents caused by sudden illness. Application scenarios: passenger cars, commercial vehicles, ride-hailing fleets, freight fleets. Real-time monitoring; when flushing or heavy sweating is detected, it voice-prompts 'please pay attention to your physical state, rest is recommended' or pushes the event to the fleet-management platform. Skill features: sudden illness of drivers (e.g., heart attack, heatstroke, hypoglycemia) often leads to vehicle loss of control and major accidents. AI real-time monitoring of facial flushing and abnormal sweating provides an early reminder for drivers to take a break or seek help, reducing accident risk. Can serve as a value-add feature on DMS systems, especially suitable for commercial and ride-hailing fleets. | 通过车载DMS摄像头实时分析驾驶员面部视频,检测面部肤色变化(潮红指数,通过RGB色空间中的红色分量比例或肤色模型)以及汗珠/反光面积(通过图像纹理和反射特征)。当潮红指数显著升高(可能提示血压升高、发热或情绪激动)或出汗区域面积超过阈值(可能提示热应激、低血糖或心脏问题)时,输出健康风险提醒,建议驾驶员停车休息或就医。该技能旨在辅助驾驶员关注自身健康,避免因突发疾病引发事故。应用场景:乘用车、商用车、网约车、货运车队。系统实时监测,当检测到面部潮红或大量出汗时,通过语音提示'请注意身体状态,建议休息'或推送至车队管理平台。技能特点:驾驶员突发疾病(如心梗、中暑、低血糖)往往会导致车辆失控,引发重大事故。通过AI实时监测面部潮红和出汗异常,可早期提醒驾驶员关注自身状态,采取休息或求助措施,降低事故风险。该技能可作为DMS系统的增值功能,提升车辆主动安全水平,尤其适合营运车辆和网约车平台。
openclaw skills install smyx-driver-flushing-sweat-detection-analysisUsing an in-cabin DMS camera, the system analyzes the driver's facial video in real time, detecting skin color variation (flush index, derived from red-channel ratio in RGB or skin-color models) and sweat-droplet / reflective area (via image texture and reflection features). When the flush index rises significantly (possibly indicating elevated blood pressure, fever or strong emotion) or the sweating area exceeds the threshold (possibly indicating heat stress, hypoglycemia or cardiac issues), it outputs a health-risk reminder and suggests the driver to rest or seek medical help. The skill aims to help drivers stay aware of their physical state and avoid accidents caused by sudden illness. Application scenarios: passenger cars, commercial vehicles, ride-hailing fleets, freight fleets. Real-time monitoring; when flushing or heavy sweating is detected, it voice-prompts 'please pay attention to your physical state, rest is recommended' or pushes the event to the fleet-management platform. Skill features: sudden illness of drivers (e.g., heart attack, heatstroke, hypoglycemia) often leads to vehicle loss of control and major accidents. AI real-time monitoring of facial flushing and abnormal sweating provides an early reminder for drivers to take a break or seek help, reducing accident risk. Can serve as a value-add feature on DMS systems, especially suitable for commercial and ride-hailing fleets.
通过车载DMS摄像头实时分析驾驶员面部视频,检测面部肤色变化(潮红指数,通过RGB色空间中的红色分量比例或肤色模型)以及汗珠/反光面积(通过图像纹理和反射特征)。当潮红指数显著升高(可能提示血压升高、发热或情绪激动)或出汗区域面积超过阈值(可能提示热应激、低血糖或心脏问题)时,输出健康风险提醒,建议驾驶员停车休息或就医。该技能旨在辅助驾驶员关注自身健康,避免因突发疾病引发事故。应用场景:乘用车、商用车、网约车、货运车队。系统实时监测,当检测到面部潮红或大量出汗时,通过语音提示'请注意身体状态,建议休息'或推送至车队管理平台。技能特点:驾驶员突发疾病(如心梗、中暑、低血糖)往往会导致车辆失控,引发重大事故。通过AI实时监测面部潮红和出汗异常,可早期提醒驾驶员关注自身状态,采取休息或求助措施,降低事故风险。该技能可作为DMS系统的增值功能,提升车辆主动安全水平,尤其适合营运车辆和网约车平台。
假设你是一个专业的驾驶员健康监测 AI。你的任务是分析驾驶员面部视频,检测面部潮红指数(肤色中红色分量的变化)和出汗区域(汗珠或皮肤反光面积)。当潮红指数超过阈值或出汗面积超过预设比例时,输出健康风险提醒。不要提供医疗诊断或具体临床判断,仅输出基于视觉的异常现象提示。
python -m scripts.smyx_driver_flushing_sweat_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_flushing_sweat_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 | combined_flush_sweat(潮红 Δ+0.32 / 出汗面积 22%) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地车载 DMS 驾驶员视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_driver_flushing_sweat_detection_analysis --input /path/to/dms.mp4 --open-id your-open-id
# 分析网络车载 DMS 驾驶员视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_driver_flushing_sweat_detection_analysis --url https://example.com/dms.mp4 --open-id your-open-id
# 显示历史驾驶员潮红/出汗异常报告(自动触发关键词:查看驾驶员健康历史报告、潮红预警清单等)
python -m scripts.smyx_driver_flushing_sweat_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_driver_flushing_sweat_detection_analysis --input dms.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_driver_flushing_sweat_detection_analysis --input dms.mp4 --open-id your-open-id --output result.json