Passive Vital Signs Monitoring Tool | 无感生命体征监测分析工具
by @18072937735
Non-contact detection of heart rate, respiration, blood oxygen, and heart rate variability. No wearable devices are required; monitoring is achieved solely t...
clawhub install smyx-contactless-vital-signs-monitoring-analysis📖 About This Skill
name: "contactless-vital-signs-monitoring-analysis" description: "Non-contact detection of heart rate, respiration, blood oxygen, and heart rate variability. No wearable devices are required; monitoring is achieved solely through camera footage. | 无感生命体征监测分析技能,非接触检测心率、呼吸、血氧、心率变异性,无需穿戴设备,通过摄像头画面即可监测"
Passive Vital Signs Monitoring Tool | 无感生命体征监测分析工具
By leveraging standard cameras—such as those on smartphones or computers—to capture subtle physiological changes invisible to the naked eye (like minute skin color variations or micro head movements), and combining them with advanced computer vision and signal processing algorithms, this technology enables "imperceptible" monitoring of key vital signs. Users are not required to wear any wristbands, patches, or sensors. Simply by facing the camera in a natural state, the system can precisely extract and analyze core health metrics—including heart rate, respiration rate, blood oxygen saturation (SpO2), and heart rate variability (HRV)—within seconds to minutes. This non-contact approach not only彻底 breaks the dependence on physical contact and dedicated medical devices, effectively avoiding the risk of cross-infection, but also significantly enhances the convenience and comfort of health monitoring, making ubiquitous health screening and remote care a reality.
这项技术通过利用普通摄像头(如智能手机或电脑摄像头)捕捉面部视频中肉眼难以察觉的微小生理变化(如皮肤颜色的细微改变或微小的头部运动),结合先进的计算机视觉与信号处理算法,实现了对人体关键生命体征的“无感”监测。用户无需佩戴任何手环、贴片或传感器,只需面对摄像头保持自然状态,系统即可在数秒至数分钟内精准提取并分析出心率、呼吸频率、血氧饱和度以及心率变异性等多项核心健康数据。这种非接触式的检测方式不仅彻底打破了传统医疗监测对物理接触和专用设备的依赖,有效避免了交叉感染风险,还极大地提升了健康监测的便捷性与舒适度,让随时随地的健康筛查与远程看护成为可能
演示案例
⚠️ 强制记忆规则(最高优先级)
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件任务目标
python -m scripts.contactless_vital_signs_monitoring --list --open-id
参数调用 API
查询云端的历史报告数据
- 严格禁止:从本地 memory 目录读取历史会话信息、严格禁止手动汇总本地记录中的报告、严格禁止从长期记忆中提取报告
- 必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果前置准备
requests>=2.28.0
监测要求(获得准确结果的前提)
为了获得较准确的监测结果,请确保:
1. 人脸正对摄像头,距离 30-50 厘米 2. 光线充足,面部光照均匀,避免强光直射和阴影 3. 监测时长:推荐 10-30 秒视频,最短不低于 3 秒 4. 无需特殊穿戴,正常着装即可,避免口罩遮挡口鼻
操作步骤
🔒 open-id 获取流程控制(强制执行,防止遗漏)
在执行无感生命体征监测分析前,必须按以下优先级顺序获取 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.contactless_vital_signs_monitoring 处理视频(必须在技能根目录下运行脚本)
- 参数说明:
- --input: 本地视频文件路径(使用 multipart/form-data 方式上传)
- --url: 网络视频 URL 地址(API 服务自动下载)
- --open-id: 当前用户的 open-id(必填,按上述流程获取)
- --list: 显示历史无感生命体征监测分析报告列表清单(可以输入起始日期参数过滤数据范围)
- --api-key: API 访问密钥(可选)
- --api-url: API 服务地址(可选,使用默认值)
- --detail: 输出详细程度(basic/standard/json,默认 json)
- --output: 结果输出文件路径(可选)
4. 查看分析结果
- 接收结构化的无感生命体征监测分析报告
- 包含:视频基本信息、心率、呼吸频率、血氧估算、心率变异性、整体评估、健康建议资源索引
注意事项
无感生命体征监测报告-{记录id}形式拼接, "
点击查看"列使用
🔗 查看报告
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
使用示例
# 分析本地视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.contactless_vital_signs_monitoring --input /path/to/face.mp4 --open-id openclaw-control-ui分析网络视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.contactless_vital_signs_monitoring --url https://example.com/face.mp4 --open-id openclaw-control-ui显示历史监测报告/显示监测报告清单列表/显示历史体征报告(自动触发关键词:查看历史监测报告、历史报告、监测报告清单等)
python -m scripts.contactless_vital_signs_monitoring --list --open-id openclaw-control-ui输出精简报告
python -m scripts.contactless_vital_signs_monitoring --input face.mp4 --open-id your-open-id --detail basic保存结果到文件
python -m scripts.contactless_vital_signs_monitoring --input face.mp4 --open-id your-open-id --output result.json