← Back to Skills Marketplace
Train Ticket Ocr
by
SCNet-sugon
· GitHub ↗
· v1.0.3
· MIT-0
169
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install train-ticket-ocr
Description
支持从火车票中识别出发站、到达站、车次、座位号、票价、乘车日期、身份证号及售票点信息
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install train-ticket-ocr - After installation, invoke the skill by name or use
/train-ticket-ocr - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Train Ticket Ocr?
支持从火车票中识别出发站、到达站、车次、座位号、票价、乘车日期、身份证号及售票点信息. It is an AI Agent Skill for Claude Code / OpenClaw, with 169 downloads so far.
How do I install Train Ticket Ocr?
Run "/install train-ticket-ocr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Train Ticket Ocr free?
Yes, Train Ticket Ocr is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Train Ticket Ocr support?
Train Ticket Ocr is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Train Ticket Ocr?
It is built and maintained by SCNet-sugon (@scnet-sugon); the current version is v1.0.3.
More Skills