← 返回 Skills 市场
scnet-sugon

Train Ticket Ocr

作者 SCNet-sugon · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
169
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install train-ticket-ocr
功能描述
支持从火车票中识别出发站、到达站、车次、座位号、票价、乘车日期、身份证号及售票点信息
安全使用建议
This skill implements a straightforward client that uploads local ticket images to Scnet's OCR API and returns structured JSON. Before installing or using it: 1) Confirm you trust https://api.scnet.cn and review its privacy/data-retention policy because images can contain sensitive personal data (names, ID numbers, ticket numbers). 2) Provide the SCNET_API_KEY only via a protected configuration method (environment variable or config/.env with 600 permissions) and avoid pasting the key into chat. 3) Verify the registry metadata vs. the skill files (the package claims no required env var in the registry summary but the skill actually requires SCNET_API_KEY). 4) Consider using a dedicated/limited API key and rotating it if the skill is no longer used. 5) Ensure the example invocation path matches your deployment (the README/example references a .claude path that may differ from the packaged scripts). If you need higher assurance, contact the skill author or use your own hosted OCR service instead.
功能分析
Type: OpenClaw Skill Name: train-ticket-ocr Version: 1.0.3 The skill is a standard OCR implementation that sends a local image file to the Sugon-Scnet API (api.scnet.cn) for processing. The code in scripts/main.py follows best practices for API interaction, including environment variable management for secrets, error handling for authentication issues, and a retry mechanism for rate limiting (429 errors), with no evidence of malicious data exfiltration or unauthorized execution.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description, SKILL.md, scripts/main.py and references/api-docs.md all consistently implement a train-ticket OCR client that uploads a local image and returns structured fields. The requested credential (SCNET_API_KEY) and optional SCNET_API_BASE align with the stated purpose.
Instruction Scope
Runtime instructions and the Python script read a local file path and POST the image to https://api.scnet.cn/api/llm/v1/ocr/recognize (default). This is expected for an OCR skill, but it means image data — potentially including names and ID numbers — is transmitted to a third-party service; users should confirm they trust the provider and its data-retention/privacy policies. Minor note: the example command references a .claude/skills/... path which may not match the packaged script location (scripts/main.py); this is a usability inconsistency rather than a security red flag.
Install Mechanism
No install spec; code is instruction-only plus a small Python script that uses the requests library. Nothing downloads or executes external code beyond normal HTTP requests. The only dependency is requests (pip), which is proportionate to the task.
Credentials
The skill requires a single service credential (SCNET_API_KEY) and an optional SCNET_API_BASE — appropriate for a cloud OCR integration. However, registry metadata at the top of the evaluation incorrectly listed 'Required env vars: none' while SKILL.md and skill.yaml declare SCNET_API_KEY as required; this metadata inconsistency should be resolved before trust decisions. The script reads a config/.env file under its own directory (no system-wide credentials accessed).
Persistence & Privilege
always:false and no code that modifies other skills or system-wide configuration. The skill runs on-demand and requires the agent to invoke the script; autonomous invocation is permitted (platform default) but not combined with any unusual privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install train-ticket-ocr
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /train-ticket-ocr 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added skill.yaml file with metadata and configuration for the skill. - Updated documentation to focus on train ticket OCR only, removing broader general OCR instructions. - Clarified required Python dependencies and included installation instructions for requests library. - Enhanced API key security recommendations, instructing not to paste sensitive info in chat. - Documented API QPS (rate limiting) and provided best practices to avoid triggering limits. - Introduced troubleshooting steps and clarified error handling for API limits and configuration issues.
v1.0.1
- Removed the sample config.json file. - No changes to functionality or documentation; usage and configuration remain the same.
v0.1.0
train-ticket-ocr v0.1.0 - Initial release with structured OCR support for Chinese train tickets. - Extracts departure station, arrival station, train number, seat number, ticket price, travel date, ID number, and ticket office info from images. - Supports input type selection and local image files (jpg, png, pdf, etc). - Delivers structured JSON output with recognition result and confidence. - Requires Scnet API Token configuration before use. - Includes troubleshooting steps for common issues like missing config, file path errors, or token expiration.
元数据
Slug train-ticket-ocr
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Train Ticket Ocr 是什么?

支持从火车票中识别出发站、到达站、车次、座位号、票价、乘车日期、身份证号及售票点信息. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 169 次。

如何安装 Train Ticket Ocr?

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

Train Ticket Ocr 是免费的吗?

是的,Train Ticket Ocr 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Train Ticket Ocr 支持哪些平台?

Train Ticket Ocr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Train Ticket Ocr?

由 SCNet-sugon(@scnet-sugon)开发并维护,当前版本 v1.0.3。

💬 留言讨论