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.
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.
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
Run src/tools/download_image.py to download CAPTCHA images, then run src/tools/cut_image.py to separate image and word portions.
Process the word crops with src/image/scripts/words.py and manually sort labeled examples into the image and word train and test directories.
For each dataset, run its create_data.py script and create_lmdb.sh script under src/image/scripts or src/words/scripts.
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.
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
Choose the model file by changing the corresponding model filename.
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.
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

