OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

12306 Captcha

12306 Captcha is an open-source Python and Caffe project for preparing datasets and training or testing deep-learning models that recognize images and words in 12306 CAPTCHA challenges.

Independent OpenViST project profile, based on linked sources.

12306 Captcha — A hands-on Caffe training workflow with separate image and word datasets
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to study or prototype a Caffe-based workflow for 12306 CAPTCHA image and word recognition, including dataset preparation and model testing.

Who it is for

  • Developers building a CAPTCHA recognition prototype with Caffe.
  • Researchers or learners exploring labeled image and word classification workflows.

Documented uses

  • Download and split CAPTCHA examples into image and word portions.
  • Organize labeled train and test datasets and create LMDB inputs.
  • Train or fine-tune separate image and word recognition models.
  • Test a selected model through the project's basic web interface.
Before you choose

Requirements & limits

The repository is public and licensed under Apache-2.0.

  • The workflow requires compiling Caffe, installing Python dependencies, and configuring project paths.
  • Dataset preparation includes manual sorting of labeled examples.
  • The README identifies imperfect word segmentation and lower response efficiency from processing image crops individually.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare labeled data and train image or word models

Create the project’s image and word training datasets, then use its documented scripts to train or fine-tune the corresponding Caffe models.

Before you start

  • A compiled Caffe installation.
  • Python packages including easydict and skimage.
  • Caffe and project root paths set in src/config.py.
  • CAPTCHA examples that can be manually sorted into labeled train and test folders.

Steps

  1. Run src/tools/download_image.py to download CAPTCHA images, then run src/tools/cut_image.py to separate image and word portions.

  2. Process the word crops with src/image/scripts/words.py and manually sort labeled examples into the image and word train and test directories.

  3. For each dataset, run its create_data.py script and create_lmdb.sh script under src/image/scripts or src/words/scripts.

  4. Use the corresponding image_train.sh or words_train.sh script to train from scratch, or the matching finetune_train.sh script to fine-tune.

Expected outcome

Prepared image and word LMDB datasets and a training or fine-tuning workflow for the corresponding Caffe models.

Guide limitations

  • The README leaves Caffe installation details to the official Caffe documentation and says model parameter changes should follow other Caffe model guidance.
  • Word segmentation is described as imperfect; image crops are classified individually, which the README says can reduce response efficiency.
Source-based practical guide

Open the basic web test interface

Use the repository's documented web interface to test with a selected model file.

Before you start

  • The repository's src/web interface.
  • A model file to select in the interface configuration.

Steps

  1. Choose the model file by changing the corresponding model filename.

  2. Run index.py from src/web.

Expected outcome

The project provides a basic web interface for testing a selected model.

Guide limitations

  • The README describes this as a simple test interface and does not document a production service or deployment workflow.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
21 November 2026
Original website title
aaronshan/12306-captcha · Official homepage title · retained in its source language