技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
easy12306【数据与研究】Routes easy12306 12306 captcha recognition tasks across pretrained inference, data preparation, text-model training, and image-model training workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves easy12306, the legacy Python/OpenCV/Keras project for recognizing 12306 captcha prompts and image tiles. It is a router: load the focused sub-skill that matches the user's goal, then use that sub-skill's bundled references and scripts instead of reopening source files from an original checkout.
Read this skill when the user asks about:
model.h5, 12306.image.model.h5, texts.txt, and a captcha image..npz datasets, or OCR-assisted labels.Avoid this skill when the request is only generic CAPTCHA solving, modern object detection/OCR unrelated to easy12306 artifacts, or editing a different repository.
The repository is a flat script collection rather than an installable Python package. The verified inspection baseline was:
Python 3.11 + TensorFlow/Keras 2.15-compatible APIs + OpenCV + NumPy + SciPy + scikit-learn + matplotlib + requests
Create a Python 3.11 environment, then install the legacy-compatible runtime dependencies explicitly:
python3 -m pip install \
"tensorflow-cpu==2.15.1" "keras==2.15.0" \
opencv-python-headless numpy scipy scikit-learn matplotlib requests
Use opencv-python instead of opencv-python-headless only when the task needs GUI/image-window features. The source dependency list used the deprecated sklearn package name; use scikit-learn in new environments.
Minimal verification command:
python scripts/check_environment.py
Keras 3 can break legacy imports because the image-model script imports keras.preprocessing.image.ImageDataGenerator. Use references/troubleshooting.md and scripts/check_environment.py before running model code in a new environment.
| User task | Load |
|---|---|
| Use pretrained artifacts for a full captcha or single image-tile prediction; validate image/model/label prerequisites; interpret row/column output. | sub-skills/inference/SKILL.md |
Prepare captcha data, prompt-text crops, eight object tiles, perceptual hashes, label vocabulary files, Baidu OCR labeling notes, or .npz data schemas. | sub-skills/data-preparation/SKILL.md |
Train, fine-tune, inspect, or troubleshoot the cropped prompt-text classifier and model.h5/model.v*.h5 artifacts. | sub-skills/text-modeling/SKILL.md |
Train, inspect, or troubleshoot the VGG16-based image-tile classifier and 12306.image.model.h5 artifact. | sub-skills/image-modeling/SKILL.md |
texts.txt.python scripts/check_environment.py checks that the active Python environment has the dependency imports and legacy Keras surface expected by easy12306. It does not read user model/data files.19x57 text crop, and eight 67x67 tile geometry unless the user explicitly asks to adapt the repo to a new captcha layout.