Install
openclaw skills install new-smyx-risk-analysisClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Supports identifying high-risk behaviors and health risks through video/images, including elderly falls, precursors to heart attacks and strokes, and abnormal behaviors, issuing timely warning alerts. | 高风险行为识别分析工具,支持通过视频/图片识别高危行为和健康风险,包括老人跌倒、心梗脑梗前兆、异常行为等,及时发出预警提示
openclaw skills install new-smyx-risk-analysisDeeply integrating Computer Vision, Pose Estimation, and Multimodal Health Risk Recognition algorithms, this feature
constructs an intelligent early warning system designed for high-risk behaviors and sudden health events. The system
analyzes individual behavior patterns and physiological manifestations in real-time from video or images. It precisely
captures high-risk behaviors such as sudden posture changes during falls or prolonged stillness indicating abnormal
retention. Simultaneously, by analyzing visual cues like facial microcirculation changes, abnormal skin color, and
decreased limb coordination, it assists in identifying precursors to sudden diseases such as heart attacks and
strokes.
Leveraging temporal behavior modeling and risk assessment models, the system effectively distinguishes between daily
activities and potential dangers. Once an anomaly is detected, it immediately triggers a multi-level warning mechanism,
notifying family members and caregivers via APP push, SMS, and voice broadcasts. It synchronously transmits anomaly
footage, risk type, and location information. This provides 24/7, unobtrusive, and precise safety protection for
high-risk groups like the elderly living alone and chronic disease patients, realizing a closed-loop health management
system that shifts from passive response to active prevention.
本功能深度融合计算机视觉、姿态估计与多模态健康风险识别算法,构建了一套面向高危行为与突发健康事件的智能预警系统。系统可实时解析视频或图片中的个体行为模式与生理表征,精准捕捉老人跌倒时的姿态骤变、异常滞留时的长时间静止等高危行为,同时通过面部微循环变化、肤色异常、肢体协调性下降等视觉线索,辅助识别心梗、脑梗等突发疾病的前兆特征。借助时序行为建模与风险等级评估模型,系统能够有效区分日常活动与潜在危险,一旦检测到异常,立即触发分级预警机制,通过APP推送、短信、语音播报等多渠道通知家属及护理人员,并同步发送异常画面、风险类型与位置信息,为独居老人、慢性病患者等高风险群体提供7×24小时无感化、精准化的安全守护,实现从被动应对到主动预防的健康管理闭环
requests>=2.28.0
opencv-python>=4.5.5
numpy>=1.21.0
pillow>=9.0.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.risk_analysis 处理输入源--input: 本地文件路径(与--url二选一)--url: 网络URL或实时流地址(与--input二选一)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 列出该 open-id 的历史风险分析报告(与--input/--url互斥)--page-num: 分页页码,配合--list使用(默认 1)--page-size: 分页大小,配合--list使用(默认 30)--api-key: API访问密钥(可选)--api-url: API服务地址(可选,使用默认值)--mode: 分析模式(all/fall/health/behavior,默认all)--threshold: 预警阈值(0.1-1.0,默认0.8)--output: 结果输出文件路径(可选)--alert: 是否开启自动预警(true/false,默认false)# 分析本地视频文件
python -m scripts.risk_analysis --input /path/to/video.mp4 --open-id your-open-id
# 分析网络视频URL
python -m scripts.risk_analysis --url https://example.com/video.mp4 --open-id your-open-id
# 跌倒识别模式(只检测跌倒事件)
python -m scripts.risk_analysis --input video.mp4 --open-id your-open-id --mode fall
# 实时流监测(RTSP摄像头)
python -m scripts.risk_analysis --url rtsp://camera_ip:554/stream --open-id your-open-id --alert true
# 自定义预警阈值
python -m scripts.risk_analysis --input video.mp4 --open-id your-open-id --threshold 0.7
# 保存结果到文件
python -m scripts.risk_analysis --input video.mp4 --open-id your-open-id --output result.json
# 📋 列出指定用户的历史风险分析报告
python -m scripts.risk_analysis --list --open-id your-open-id
# 列出指定用户的历史报告,自定义分页
python -m scripts.risk_analysis --list --open-id your-open-id --page-num 2 --page-size 20