返回顶部
t

trafficeye-license-plate车牌识别

Detect and read the largest license plate from an image using the TrafficEye REST API. Use when the user wants ANPR, ALPR, license plate OCR, number plate reading, or to extract a plate from a local image file. You can obtain API key and tokens from https://trafficeye.ai.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
127
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

trafficeye-license-plate

TrafficEye 车牌识别器

当用户想要通过 TrafficEye API 从图像中读取车牌时,使用此技能。

该技能的功能

  1. 1. 接受本地图像路径。
  2. 将图像上传至 TrafficEye 识别 API。
  3. 如果配置了 TRAFFICEYEREQUESTJSON,则可选地发送 request 表单字段。
  4. 解析 API 响应。
  5. 根据多边形面积选择检测到的最大车牌。
  6. 向用户返回完整的选定车牌数据,包括文本、类型(国家)、尺寸、分数、遮挡、不可读和位置。

预期输入

  • - 本地图像文件路径。
  • 如果用户提供了附件而非路径,则先将其解析为本地文件路径,然后运行辅助程序。

默认运行时假设

  • - API 端点默认为 https://trafficeye.ai/recognition。
  • 默认请求负载为 {tasks:[DETECTION,OCR],requestedDetectionTypes:[BOX,PLATE]}。
  • 默认 API 密钥传输方式与 TrafficEye 公共 API 示例一致:标头模式,标头名称为 apikey。
  • 认证和请求字段保持可配置,以适应不同的部署环境。

环境变量

  • - TRAFFICEYEAPIKEY:必需,除非显式传递给辅助程序。
  • TRAFFICEYEAPIURL:可选,默认为 https://trafficeye.ai/recognition。
  • TRAFFICEYEAPIKEYMODE:可选值为 header、bearer、form、query。默认为 header。
  • TRAFFICEYEAPIKEYNAME:用于 header、form 或 query 模式的密钥名称。默认为 apikey。
  • TRAFFICEYEFILEFIELD:图像的多部分字段。默认为 file。
  • TRAFFICEYEREQUESTFIELD:JSON 请求的多部分字段。默认为 request。
  • TRAFFICEYEREQUESTJSON:作为请求字段包含的 JSON 字符串。默认值为 {tasks:[DETECTION,OCR],requestedDetectionTypes:[BOX,PLATE]}。
  • TRAFFICEYETIMEOUTS:可选超时时间(秒)。默认为 30。

运行方法

设置您的 API 密钥:
bash
export TRAFFICEYEAPIKEY=YOURREALKEY

使用捆绑的辅助程序:

bash
python3 recognize_plate.py /absolute/path/to/image.jpg

如需结构化输出:

bash
python3 recognize_plate.py /absolute/path/to/image.jpg --format json

如果部署环境需要 Bearer 认证:

bash
TRAFFICEYEAPIKEYMODE=bearer python3 recognizeplate.py /absolute/path/to/image.jpg

如果部署环境需要显式请求负载:

bash
TRAFFICEYEREQUESTJSON={requestedDetectionTypes:[PLATE]} python3 recognize_plate.py /absolute/path/to/image.jpg --format json

等同于文档中的公共 API 示例:

bash
curl -X POST \
-H Content-Type: multipart/form-data \
-H apikey: YOURAPIKEY_HERE \
-F file=@image.jpg \
-F request={tasks:[DETECTION,OCR],requestedDetectionTypes:[BOX,PLATE]} \
https://trafficeye.ai/recognition

代理工作流程

  1. 1. 验证图像路径是否存在。
  2. 运行 python3 recognize_plate.py --format json。
  3. 向用户展示完整的选定车牌数据,特别是 text、type、dimension、occlusion、unreadable 和 position。
  4. 如果 API 未返回可读文本,则说明已找到最大车牌但缺少 OCR 文本。
  5. 如果认证失败,询问用户其部署环境期望的认证模式,并使用匹配的环境变量重试。

离线验证

您可以在不调用 API 的情况下验证选择逻辑:

bash
python3 recognizeplate.py --response-json-file examples/sampleresponse.json --format json

注意事项

  • - 辅助程序有意根据几何面积选择最大车牌,而非检测置信度。
  • 响应解析器首先检查 combinations[].roadUsers[].plates[],同时也支持 roadUsers[].plates[]、顶层 plates[] 以及递归发现的嵌套车牌数据。
  • 默认请求和认证标头与 https://www.trafficeye.ai/api 上的公共示例一致。
  • 选定结果现在包含来自 API 的原始车牌数据,因此国家/类型和所有分数均得以保留。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 automatic-number-plate-recognition-1776120882 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 automatic-number-plate-recognition-1776120882 技能

通过命令行安装

skillhub install automatic-number-plate-recognition-1776120882

下载

⬇ 下载 trafficeye-license-plate v1.0.0(免费)

文件大小: 7.39 KB | 发布时间: 2026-4-14 10:41

v1.0.0 最新 2026-4-14 10:41
- Initial release of TrafficEye license plate reader skill, provided by trafficeye.ai by Eyedea Recognition.

- Detects and reads the largest license plate from a local image using the TrafficEye REST API.
- Supports configurable API authentication and request fields via environment variables.
- Returns the full plate payload, including text, type, dimension, scores, and position.
- Provides CLI helper for structured output and offline response validation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部