← 返回 Skills 市场
eyedea-ai

Make and Model Recognition

作者 eyedea-ai · GitHub ↗ · v1.0.1 · MIT-0
linuxmacoswindows ✓ 安全检测通过
157
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install make-and-model-recognition
功能描述
Detect the largest vehicle from an image using TrafficEye car-box detection, run make and model recognition for that vehicle, and return all license plates a...
使用说明 (SKILL.md)

TrafficEye Largest Road User Reader

Use this skill when the user wants the largest detected vehicle from an image, along with its make and model classification and every detected license plate belonging to that same road user.

What This Skill Does

  1. Accepts a local image path.
  2. Uploads the image to the TrafficEye recognition API.
  3. Sends a recognition request that asks for detection, OCR, and MMR with box preference by default.
  4. Parses the API response, including responses wrapped as { "status": ..., "data": ... }.
  5. Picks the largest detected road user by box.position area.
  6. Returns a wrapper object containing roadUser, box, plates, area, and source, preserving the full selected road-user payload.

Expected Input

  • A local image file path.
  • If the user supplied an attachment instead of a path, first resolve it to a local file path and then run the helper.

Default Runtime Assumptions

  • The API endpoint defaults to https://trafficeye.ai/recognition.
  • The default request payload is {"tasks":["DETECTION","OCR","MMR"],"requestedDetectionTypes":["BOX","PLATE"],"mmrPreference":"BOX"}.
  • The default API-key transport matches the TrafficEye public API example: header mode with header name apikey.
  • Auth and request fields remain configurable in case your deployment differs.

Environment Variables

  • TRAFFICEYE_API_KEY: required unless passed explicitly to the helper.
  • TRAFFICEYE_API_URL: optional, defaults to https://trafficeye.ai/recognition.
  • TRAFFICEYE_API_KEY_MODE: one of header, bearer, form, query. Default: header.
  • TRAFFICEYE_API_KEY_NAME: key name for header, form, or query mode. Default: apikey.
  • TRAFFICEYE_FILE_FIELD: multipart field for the image. Default: file.
  • TRAFFICEYE_REQUEST_FIELD: multipart field for the JSON request. Default: request.
  • TRAFFICEYE_REQUEST_JSON: JSON string to include as the request field. By default this is {"tasks":["DETECTION","OCR","MMR"],"requestedDetectionTypes":["BOX","PLATE"],"mmrPreference":"BOX"}.
  • TRAFFICEYE_TIMEOUT_S: optional timeout in seconds. Default: 30.

Only TRAFFICEYE_API_KEY is required for the default live API flow. The other variables are optional overrides.

How To Run

Setup your API key:

export TRAFFICEYE_API_KEY='YOUR_REAL_KEY'

Use the road-user helper:

python3 recognize_road_user.py /absolute/path/to/image.jpg

For structured output:

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

If the deployment expects Bearer auth:

TRAFFICEYE_API_KEY_MODE=bearer python3 recognize_road_user.py /absolute/path/to/image.jpg

If the deployment needs an explicit request payload:

TRAFFICEYE_REQUEST_JSON='{"tasks":["DETECTION","OCR","MMR"],"requestedDetectionTypes":["BOX","PLATE"],"mmrPreference":"BOX"}' python3 recognize_road_user.py /absolute/path/to/image.jpg --format json

Equivalent to the documented public API example:

curl -X POST \
  -H "Content-Type: multipart/form-data" \
  -H "apikey: YOUR_API_KEY_HERE" \
  -F "[email protected]" \
  -F 'request={"tasks":["DETECTION","OCR","MMR"],"requestedDetectionTypes":["BOX","PLATE"],"mmrPreference":"BOX"}' \
  https://trafficeye.ai/recognition

Agent Workflow

  1. Verify that the image path exists.
  2. Run python3 recognize_road_user.py \x3Cimage-path> --format json.
  3. Present the full selected road-user payload to the user, especially box, mmr, and the complete plates array.
  4. If the selected road user has no plates, explain that the largest vehicle was found but no plates were attached to that road user.
  5. If authentication fails, ask the user which auth mode their deployment expects and retry with the matching environment variables.

Offline Validation

You can validate the selection logic without calling the API:

python3 recognize_road_user.py --response-json-file examples/sample_response.json --format json

Output Shape

The helper prints JSON with this top-level structure:

{
  "roadUser": {"box": {}, "plates": [], "mmr": {}},
  "box": {},
  "plates": [],
  "area": 0,
  "source": {
    "combinationIndex": 0,
    "roadUserIndex": 0,
    "path": "combinations[0].roadUsers[0]"
  }
}
  • roadUser is the original selected road-user payload from TrafficEye.
  • box repeats roadUser.box for convenience.
  • plates repeats roadUser.plates for convenience and may be empty.
  • area is the computed rectangle area used for winner selection.
  • source identifies where the selected road user came from in the API response.

Notes

  • The helper intentionally chooses the largest boxed vehicle by geometric area, not by detection confidence.
  • The response parser first checks data.combinations[].roadUsers[], then combinations[].roadUsers[], then roadUsers[], and finally nested road-user payloads discovered recursively.
  • The default request and auth header mirror the public example at https://www.trafficeye.ai/api.
  • The selected result now includes the original road-user payload from the API so mmr, box, all plates, and their scores are preserved.
安全使用建议
This skill will upload any image you give it to the TrafficEye service and requires your TRAFFICEYE_API_KEY. Before installing, confirm you trust trafficeye.ai for processing and storage of images (including license plates), check their data-retention/privacy policy, and avoid supplying sensitive images unless you are comfortable with that external processing. Keep your API key secret (do not paste it into chat). You can test behavior offline using the provided sample_response.json to validate selection logic without contacting the API. Autonomous invocation is permitted by default (normal for skills), so only enable the skill for agents you trust to run it.
功能分析
Type: OpenClaw Skill Name: make-and-model-recognition Version: 1.0.1 The skill is a functional wrapper for the TrafficEye vehicle recognition API, designed to detect vehicles and license plates in local images. The Python script (recognize_road_user.py) uses standard libraries to handle multipart file uploads and JSON parsing, and its behavior aligns perfectly with the instructions in SKILL.md. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (make & model + plates from an image) match the code and SKILL.md. The only required runtime items are a Python interpreter and a TrafficEye API key, which are proportionate for a client that uploads images to an external recognition API.
Instruction Scope
Runtime instructions and the script focus on validating a local image path, reading that image, uploading it to the configured TrafficEye endpoint, and parsing the JSON response to pick the largest boxed road user. The instructions do not request access to unrelated files, credentials, or external endpoints beyond the API host (api URL is configurable).
Install Mechanism
No install spec; this is essentially an instruction+script skill that runs with the system Python and standard library. Nothing is downloaded or written to disk by an installer.
Credentials
Only TRAFFICEYE_API_KEY is required; other TRAFFICEYE_* variables are optional overrides (API URL, auth mode, field names, timeout). No unrelated credentials or system config paths are requested.
Persistence & Privilege
Skill is not always-enabled, does not modify other skills or global agent configuration, and does not request elevated or persistent system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install make-and-model-recognition
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /make-and-model-recognition 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Actually run Make and Model recognition using trafficeye.ai API.
v1.0.0
Initial release of TrafficEye Make and Model Recognition. On Monday 03/23/26 big upgrade is coming with actual Make and Model feature, now license plate reading is available only. - Detects and reads the largest license plate from an image using the TrafficEye REST API. - Accepts a local image file path, uploads it, and returns detailed plate information including text, type (country), dimensions, occlusion, unreadable status, and position. - Supports configurable authentication and request fields via environment variables. - Provides a CLI helper and documented usage patterns for various scenarios. - Includes offline response validation support for testing without API calls.
元数据
Slug make-and-model-recognition
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Make and Model Recognition 是什么?

Detect the largest vehicle from an image using TrafficEye car-box detection, run make and model recognition for that vehicle, and return all license plates a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。

如何安装 Make and Model Recognition?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install make-and-model-recognition」即可一键安装,无需额外配置。

Make and Model Recognition 是免费的吗?

是的,Make and Model Recognition 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Make and Model Recognition 支持哪些平台?

Make and Model Recognition 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, macos, windows)。

谁开发了 Make and Model Recognition?

由 eyedea-ai(@eyedea-ai)开发并维护,当前版本 v1.0.1。

💬 留言讨论