Automatically detects electric motorcycles and e-bikes in restricted areas based on computer vision. It supports real-time detection for both video streams and images, counts the number of illegal parking or driving instances, and triggers violation alerts to assist with safety management in parks, communities, and organizations. | 电动车智能检测技能,基于计算机视觉自动检测禁行区域内的电动摩托车/电动车,支持视频流和图片实时检测,统计违规停放/行驶数量,触发违规预警,助力园区/社区/单位安全管理
Specifically designed for security management in industrial parks, communities, and institutions, this capability leverages computer vision technology to perform real-time analysis of video streams and static images. It automatically detects electric motorcycles and scooters entering restricted zones, accurately tallies the number of violations regarding illegal parking and driving, and promptly triggers alerts. This empowers management to efficiently control vehicle violations and significantly enhances the overall security management efficiency of the area.
该技能专为园区、社区及单位的安全管理场景打造,基于计算机视觉技术,可对视频流与静态图片进行实时分析,自动检测禁行区域内出现的电动摩托车或电动车,精准统计违规停放与行驶的数量,并及时触发违规预警,助力管理方高效管控车辆违规问题,提升区域安全管理效率。
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.electric_vehicle_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.electric_vehicle_detection_analysis 处理文件(必须在技能根目录下运行脚本)--input: 本地视频/图片文件路径(使用 multipart/form-data 方式上传)--url: 网络媒体 URL 地址(API 服务自动下载)--detection-type: 检测类型,可选值:video(视频流检测)/image(图片检测),默认 video--area-type: 禁行区域类型,可选值:parking-lot(停车场)/community(社区园区)/campus(校园单位)/road(禁行道路)
/other,默认 other--open-id: 当前管理区域/管理员的 open-id(必填,按上述流程获取)--list: 显示电动车检测历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)电动车检测分析报告-{记录id}
形式拼接,点击查看列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 检测类型 | 分析时间 | 违规数量 | 点击查看 |
|---|---|---|---|---|
| 电动车检测分析报告 -20260312172200001 | 视频检测 | 2026-03-12 17:22:00 | 3 | |
| 辆 | 🔗 查看报告 |
# 分析社区园区监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.electric_vehicle_detection_analysis --input /path/to/community_video.mp4 --detection-type video --area-type community --open-id openclaw-control-ui
# 分析停车场监控图片(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.electric_vehicle_detection_analysis --input /path/to/parking_image.jpg --detection-type image --area-type parking-lot --open-id openclaw-control-ui
# 分析网络监控视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.electric_vehicle_detection_analysis --url https://example.com/camera_monitor.mp4 --detection-type video --area-type campus --open-id openclaw-control-ui
# 显示历史分析报告/显示分析报告清单列表/显示历史检测报告(自动触发关键词:查看历史检测报告、历史报告、检测报告清单等)
python -m scripts.electric_vehicle_detection_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.electric_vehicle_detection_analysis --input monitor.mp4 --detection-type video --area-type community --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.electric_vehicle_detection_analysis --input image.jpg --detection-type image --area-type community --open-id your-open-id --output result.json