微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⚠️

AI 视觉安全生产巡检专家

Ezviz Open Safety Production Inspection · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 A 级 作者 ezviz-open 公开目录收录
699 下载 0 安装 1.4k 收藏 36 浏览

简介

基于萤石云 Ezviz 官方 API 的工业安全巡检技能,调用萤石 AI 智能体实时检测安全帽佩戴、人员跌倒、烟火隐患等,为制造、建筑等行业提供权威合规的安全生产视觉监管方案。

原始描述

Ezviz safety production inspection skill. Captures device images and sends to Ezviz AI for workplace safety analysis.

通过你的 Agent 添加

安装目录:ezviz-open-safety-production-inspection/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/ezviz-open-safety-production-inspection/
Codex CLI~/.codex/skills/ezviz-open-safety-production-inspection/
DeepSeek Harness~/.agents/skills/ezviz-open-safety-production-inspection/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Ezviz Safety Production Inspection Skill 是一款面向工业安全生产场景的 AI 视觉巡检工具。用户配置 Ezviz 应用凭证(App Key / App Secret)及设备序列号后,技能自动调用 open.ys7.com 官方 API 完成:获取访问令牌、查询或创建「安全生产行业通用智能体」、捕获指定摄像头画面、将图像发送至 aidialoggw.ys7.com 进行 AI 分析,最终输出安全帽佩戴检测、人员跌倒识别、环境整洁度评估、烟火检测等结构化结果。

技能支持两种配置方式:环境变量(推荐,安全性高)或 channels.json 配置文件;支持 Token 缓存(/tmp/ezviz_global_token_cache/,权限 0600)以提升性能,也可通过 EZVIZ_TOKEN_CACHE=0 禁用。智能体采用模板化创建机制(默认模板 ID:e15f061c13f349b1b2a3),优先复用名称含「安全生产」的现有智能体,满足合规审计要求。

显著优点

  1. 官方背书,来源可信:直接对接萤石云 Ezviz 开放平台(open.ys7.com)及 AI 网关(aidialoggw.ys7.com),而非第三方爬虫或逆向接口,数据链路透明可控。
  2. 开箱即用的行业模板:内置「安全生产行业通用智能体」模板,覆盖 PPE 防护、消防安全、电气安全、作业环境、机械防护、危化品管理等 6 大类检测项,无需用户自建 AI 模型。
  3. 合规设计严谨:强制要求智能体名称包含「安全生产」字样,满足国内企业安全审计与合规留痕需求;Token 缓存文件权限限定 600,降低凭证泄露风险。
  4. 灵活部署:支持多设备批量巡检(逗号分隔序列号)、纯环境变量配置(避免敏感信息入代码仓库)、可选禁用缓存等高安全模式。

潜在缺点或局限性

  1. 强依赖外部 SaaS:所有图像分析必须在萤石 AI 云端完成,无法本地离线运行,存在网络延迟、服务商稳定性及政策合规性依赖。
  2. 隐私与数据主权:设备图像需上传至 Ezviz 云端并暂存 2 小时,对涉及敏感生产工艺或军工级的场景可能不满足数据不出域要求。
  3. 功能边界固定:检测项受限于萤石官方智能体模板,用户无法自定义训练新检测类别(如特定工服颜色、定制化危险动作)。
  4. 凭证管理成本:需单独申请 Ezviz 开放平台应用凭证,且建议与主账号隔离,对中小团队而言增加了密钥生命周期管理负担。

适合的目标群体

  • 制造业 EHS 部门:需要定期巡检车间安全帽佩戴、消防通道占用、机械防护装置完好性。
  • 建筑工地项目部:实时监控临边作业、高空作业人员跌倒、现场烟火隐患。
  • 仓储物流企业:自动化检查货架区域整洁度、叉车作业规范、危化品存储合规性。
  • 智慧园区/物业:替代人工巡查,实现配电房、机房、公共区域的 7×24 小时安全监测。

使用风险

  • 网络与性能风险:图像上传及 AI 分析依赖公网,弱网环境下可能出现超时或丢包;连续高频调用可能触发 Ezviz API 流控。
  • 凭证泄露风险:若将 App Secret 硬编码或误提交至 Git,可能导致摄像头被恶意控制或图像数据被窃取。
  • Token 缓存竞争:多进程并发场景下,/tmp 缓存文件可能存在读写竞态,建议高并发部署时禁用缓存或改用分布式锁。
  • 服务连续性风险:萤石云平台升级、智能体模板调整或域名变更时,技能可能出现功能异常,需关注官方公告及时升级。

技能正文


name: ezviz-open-safety-production-inspection description: Ezviz safety production inspection skill. Captures device images and sends to Ezviz AI for workplace safety analysis. metadata: openclaw: emoji: "⚠️" requires: env: ["EZVIZ_APP_KEY", "EZVIZ_APP_SECRET", "EZVIZ_DEVICE_SERIAL"] pip: ["requests"] primaryEnv: "EZVIZ_APP_KEY" warnings: - "Use dedicated Ezviz credentials (not main account)" - "Queries intelligent agent list" - "May create agent from template" - "Captures device images" - "Sends images to aidialoggw.ys7.com" - "Token cached in /tmp/ezviz_global_token_cache/ (600)" sideEffects: - "Query agent list" - "Create agent (template: 安全生产行业通用智能体)" - "Capture images" - "AI analysis (aidialoggw.ys7.com)" security: utf8Validated: true apiDomains: ["open.ys7.com", "aidialoggw.ys7.com"] tokenCachePerms: "0600"

Ezviz Safety Production Inspection Skill

Captures images from Ezviz cameras and sends to Ezviz AI for workplace safety production inspection.

Template: 安全生产行业通用智能体 (e15f061c13f349b1b2a3)

Detection Items:

  • Safety helmet detection (安全帽佩戴)
  • Fall detection (人员跌倒)
  • Cleanliness analysis (整洁度)
  • Fire/smoke detection (烟火检测)

⚠️ Important: This skill uses the 安全生产行业通用智能体 template.

  • Template ID: e15f061c13f349b1b2a3
  • The skill will prioritize existing agents with '安全生产' in the name
  • If no matching agent exists, a new one will be created from the safety production template
  • Created agents will automatically have '安全生产' in the name

User Confirmation Required

Running this skill means you accept these remote actions:

  1. Query Ezviz agent list (open.ys7.com)
  2. Create agent from template if needed (open.ys7.com)
  3. Capture device images (open.ys7.com)
  4. Send images for AI analysis (aidialoggw.ys7.com)

Data flow: Device -> open.ys7.com -> aidialoggw.ys7.com -> Local output

Privacy:

  • Images stored on Ezviz (2 hours)
  • Token cached in /tmp/ezviz_global_token_cache/ (perms 600)

Security Requirements

  1. Use dedicated Ezviz app credentials (not main account)
  2. Minimal permissions: capture + agent APIs only
  3. Prefer environment variables over config files
  4. Test with non-production devices first
  5. Agent name must contain '安全生产' (compliance requirement)

Quick Start

Environment Variables (Recommended)

export EZVIZ_APP_KEY="your_key"
export EZVIZ_APP_SECRET="your_secret"
export EZVIZ_DEVICE_SERIAL="dev1,dev2"
# Template ID is optional (default: e15f061c13f349b1b2a3)
export EZVIZ_SAFETY_TEMPLATE_ID="e15f061c13f349b1b2a3"
python3 scripts/safety_production_inspection.py

Config File (Alternative)

Add to ~/.openclaw/channels.json:

{
  "channels": {
    "ezviz": {
      "appId": "your_app_id",
      "appSecret": "your_app_secret",
      "devices": ["BF6985110"],
      "safetyTemplateId": "e15f061c13f349b1b2a3"  # 安全生产行业通用智能体模板 ID
    }
  }
}

Then run:

python3 scripts/safety_production_inspection.py

Disable Token Cache (High Security)

export EZVIZ_TOKEN_CACHE=0
python3 scripts/safety_production_inspection.py

Pre-Run Verification

Run these before first use:

# 1. Check for hidden characters
python3 -c "
import sys
for f in ['SKILL.md', 'scripts/safety_production_inspection.py', 'lib/token_manager.py']:
    with open(f, 'rb') as file:
        text = file.read().decode('utf-8')
        for i, c in enumerate(text):
            code = ord(c)
            if code < 32 and code not in [9, 10, 13]:
                print(f'{f}: Control char at {i}')
                sys.exit(1)
print('All files clean')
"

# 2. Verify API domains (should use open.ys7.com only)
grep -r "open.ys7.com" scripts/ lib/  # Should show endpoints

# 3. Verify domain connectivity
curl -I https://open.ys7.com/api/lapp/token/get  # Should return 200 OK

# 4. Check token cache permissions
ls -la /tmp/ezviz_global_token_cache/global_token_cache.json
# Should show: -rw------- (600)

API Endpoints

Domain Purpose
open.ys7.com Token, Capture, Agent Management
aidialoggw.ys7.com AI Analysis

Note: open.ys7.com is the official Ezviz Open API domain (openai = Open API, not AI).


Safety Production Inspection Items

The AI agent will analyze images for:

  1. Personal Protective Equipment (PPE) - Safety helmets, safety vests, goggles
  2. Fire Safety - Fire extinguishers, emergency exits, no smoking signs
  3. Electrical Safety - Proper wiring, no exposed wires, grounded equipment
  4. Workplace Organization - Clear walkways, proper storage, no clutter
  5. Machinery Safety - Guard rails, warning signs, proper operation
  6. Hazardous Materials - Proper storage, labeling, containment

Security Checklist

Before running:

  • Reviewed scripts/safety_production_inspection.py
  • Reviewed lib/token_manager.py
  • Verified API domains (open.ys7.com, aidialoggw.ys7.com)
  • Created dedicated Ezviz app (minimal permissions)
  • Tested with non-production device
  • Configured 安全生产 template ID

Before autonomous use:

  • Accept remote side effects (agent creation, image capture, AI analysis)
  • Understand data flow and privacy implications
  • Configured token cache appropriately for your environment

Update Log

Date Version Changes
2026-03-19 2.0.1 Updated template ID to e15f061c13f349b1b2a3 (安全生产行业通用智能体)
2026-03-19 2.0.0 Renamed from restaurant-inspection to safety-production-inspection
2026-03-19 1.0.9 Agent name must contain '安全生产' (compliance requirement)
2026-03-19 1.0.8 Security hardened: unified domains, user confirmation, clean UTF-8
2026-03-19 1.0.7 Global token cache support
2026-03-19 1.0.6 Config file support

Author: EzvizOpenTeam License: MIT-0

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apiautomationtestingoperationsdata-analyticsai-enhancementsecurityindustrial-iot

同类 Skill