train-ticket-ocr

Extract structured railway ticket data from Chinese train ticket images and electronic receipts.

23|4|Updated May 7, 2026
One-click install
npx skills add https://github.com/qq5855144/GitHubM --skill train-ticket-ocr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: train-ticket-ocr
Source: https://github.com/qq5855144/GitHubM/tree/main/.skills/train-ticket-ocr
Command: npx skills add https://github.com/qq5855144/GitHubM --skill train-ticket-ocr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the manual work of reading Chinese railway tickets and electronic travel receipts, turning them into clean structured fields for reimbursement, travel management, and record keeping.

Core Features & Use Cases

  • Paper Ticket Recognition: Extract ticket number, train number, stations, date, time, fare, seat class, seat number, passenger name, and masked ID details from red or blue train tickets.
  • Electronic Ticket Parsing: Handle railway e-tickets from image, URL, PDF, or OFD inputs and capture invoice-related fields when available.
  • Structured Output: Return consistent JSON so downstream tools can store, review, or audit ticket data without manual re-entry.
  • Use Case: A finance team can upload a stack of travel tickets and quickly collect the key reimbursement fields into a system-ready format.

Quick Start

Give this Skill a train ticket image or railway e-ticket file and ask it to extract all available ticket fields into structured JSON.

Frequently Asked Questions about train-ticket-ocr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract data from Chinese train ticket images for reimbursement?

To extract data from Chinese train ticket images for reimbursement, use OCR to capture structured fields like ticket number, stations, fare, and passenger details into JSON format. This removes manual reading work for travel management and invoice review.

Can I parse railway e-tickets from PDF and OFD files?

Yes, you can parse railway e-tickets from PDF and OFD files. The extraction process supports image URLs and electronic travel receipts, capturing invoice-related fields for consistent JSON output suitable for downstream storage and audit.

What structured fields can I capture from paper train tickets?

From paper train tickets, you can capture ticket number, train number, stations, date, time, fare, seat class, seat number, passenger name, and masked ID details. This applies to both red and blue physical train ticket formats.

How do I convert travel tickets into system-ready JSON format?

You convert travel tickets into system-ready JSON format by applying gateway-authenticated OCR access to prioritize multi-input handling. This returns consistent JSON output for station, train, fare, seat, passenger, and invoice fields without manual re-entry.

Does invoice extraction require gateway-authenticated OCR access?

Yes, invoice extraction for Chinese railway e-tickets requires gateway-authenticated OCR access to ensure accurate retrieval of invoice fields. This setup is necessary to process electronic travel receipts across various file inputs.