Install
openclaw skills install smyx-public-place-group-emotion-index-analysisUsing fixed cameras in malls, exhibition halls, scenic areas and other public places, the system analyzes facial expressions of multiple people in the scene in real time (with anonymized expression recognition only), aggregates the distribution of emotions (happy, calm, irritated, surprised, sad, fearful, etc.), and computes an overall group-emotion index (0-100; higher = more positive). This skill helps operators understand customer satisfaction, optimize service layout, or trigger public-safety warnings (e.g., a high irritation ratio may indicate conflict risk). Application scenarios: shopping malls, exhibition halls, museums, theme parks, airport waiting halls. The system periodically generates group-emotion reports to support management decisions. Skill features: understanding customer emotions enables malls to promptly adjust services (e.g., open more checkouts, improve air conditioning, optimize traffic flow) and boost satisfaction; for exhibitions, it assesses exhibit appeal; for public safety, it warns against group irritation that may escalate into conflict. AI anonymous analysis delivers valuable insights while protecting privacy and is an essential capability of smart malls and smart scenic areas. Can be integrated into existing security systems or business-analytics platforms. | 通过商场、展览馆、景区等公共场所的固定摄像头,实时分析场景中多人的面部表情(使用匿名化表情识别),统计各类情绪(愉悦、平静、烦躁、惊讶、悲伤等)的分布比例,计算整体情绪指数(0-100,数值越高代表群体情绪越积极)。该技能可帮助运营方了解顾客满意度、优化服务布局,或用于公共安全预警(如烦躁情绪比例过高可能预示冲突风险)。应用场景:购物中心、展览馆、博物馆、主题公园、机场候机厅。系统定期生成群体情绪报告,辅助管理决策。技能特点:了解顾客情绪能帮助商场及时调整服务(如增加收银台、改善空调、优化动线),提升满意度;对展览馆可评估展品吸引力;对公共安全可预警群体暴躁可能引发的冲突。通过AI匿名分析,在保护隐私的前提下获取有价值的数据洞察,是智慧商场、智慧景区的重要功能。该技能可集成到现有安防系统或商业分析平台中。
openclaw skills install smyx-public-place-group-emotion-index-analysisUsing fixed cameras in malls, exhibition halls, scenic areas and other public places, the system analyzes facial expressions of multiple people in the scene in real time (with anonymized expression recognition only), aggregates the distribution of emotions (happy, calm, irritated, surprised, sad, fearful, etc.), and computes an overall group-emotion index (0-100; higher = more positive). This skill helps operators understand customer satisfaction, optimize service layout, or trigger public-safety warnings (e.g., a high irritation ratio may indicate conflict risk). Application scenarios: shopping malls, exhibition halls, museums, theme parks, airport waiting halls. The system periodically generates group-emotion reports to support management decisions. Skill features: understanding customer emotions enables malls to promptly adjust services (e.g., open more checkouts, improve air conditioning, optimize traffic flow) and boost satisfaction; for exhibitions, it assesses exhibit appeal; for public safety, it warns against group irritation that may escalate into conflict. AI anonymous analysis delivers valuable insights while protecting privacy and is an essential capability of smart malls and smart scenic areas. Can be integrated into existing security systems or business-analytics platforms.
通过商场、展览馆、景区等公共场所的固定摄像头,实时分析场景中多人的面部表情(使用匿名化表情识别),统计各类情绪(愉悦、平静、烦躁、惊讶、悲伤等)的分布比例,计算整体情绪指数(0-100,数值越高代表群体情绪越积极)。该技能可帮助运营方了解顾客满意度、优化服务布局,或用于公共安全预警(如烦躁情绪比例过高可能预示冲突风险)。应用场景:购物中心、展览馆、博物馆、主题公园、机场候机厅。系统定期生成群体情绪报告,辅助管理决策。技能特点:了解顾客情绪能帮助商场及时调整服务(如增加收银台、改善空调、优化动线),提升满意度;对展览馆可评估展品吸引力;对公共安全可预警群体暴躁可能引发的冲突。通过AI匿名分析,在保护隐私的前提下获取有价值的数据洞察,是智慧商场、智慧景区的重要功能。该技能可集成到现有安防系统或商业分析平台中。
假设你是一个专业的公共场所群体情绪分析 AI。你的任务是分析固定摄像头的视频,检测画面中多个人的面部表情(匿名化处理,不识别个人身份),统计各类情绪(愉悦、平静、烦躁、惊讶、悲伤、恐惧等)的出现频率,计算整体情绪指数,并按区域输出运营优化与安全预警建议。不要识别或存储个人特征,仅输出群体层面的匿名统计。
python -m scripts.smyx_public_place_group_emotion_index_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_public_place_group_emotion_index_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: 结果输出文件路径(可选)face_detected_count 以便解读face_detected_count < 5 时输出 insufficient_sample,禁止发布群体指数群体情绪指数报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 情绪指数/场所/主要建议 | 分析时间 | 点击查看 |
|---|---|---|---|
| 群体情绪指数报告-20260312172200001 | 58 (neutral) / mall / 收银区烦躁 32% 建议加开收银台 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地公共场所视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_public_place_group_emotion_index_analysis --input /path/to/mall.mp4 --open-id your-open-id
# 分析网络公共场所视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_public_place_group_emotion_index_analysis --url https://example.com/mall.mp4 --open-id your-open-id
# 显示历史公共场所群体情绪指数报告(自动触发关键词:查看群体情绪历史报告、群体情绪指数报告清单等)
python -m scripts.smyx_public_place_group_emotion_index_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_public_place_group_emotion_index_analysis --input mall.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_public_place_group_emotion_index_analysis --input mall.mp4 --open-id your-open-id --output result.json