Skip to content
Back to skills

Data Preparation

ASecurity

"Prepare and validate easy12306 captcha crops, tiles, perceptual

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
datapythongo

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-preparation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-37ab1564/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-37ab1564)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-preparation
description: "Prepare and validate easy12306 captcha crops, tiles, perceptual
  hashes, label vocabulary artifacts, and OCR-assisted labeling workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Artistic 2.0
---

# easy12306 Data Preparation Router

Load this sub-skill when the task is to recreate, inspect, or validate the data artifacts behind easy12306: captcha acquisition, prompt-text crops, 8 image tiles, perceptual hashes, label vocabulary rows, OCR-assisted text labeling, or hash-label aggregation.

Do not use this sub-skill for pretrained model inference, text-model training, or image-model training. Route those tasks to `inference`, `text-modeling`, or `image-modeling` respectively.

## Required references

- [Workflows](references/workflows.md): acquisition, crop/tile extraction, dataset assembly, OCR-assisted labeling, and hash-label aggregation.
- [Data formats](references/data-formats.md): captcha geometry, crop/tile dimensions, `.npz` schemas, and label-vocabulary expectations.
- [Hash reference](references/hash-reference.md): exact packed 64-bit hash algorithms and the excluded wavelet hash caveat.
- [Baidu OCR labeling](references/baidu-ocr-labeling.md): credentialed, network-only reference workflow and import-time hazard.
- [Troubleshooting](references/troubleshooting.md): common geometry, dependency, label, hash, credential, and compatibility failures.
- Root label vocabulary should be read from [../../references/label-vocabulary.md](../../references/label-vocabulary.md) after the integrated root skill creates it.
- Root model/data artifact context should be read from [../../references/model-artifacts.md](../../references/model-artifacts.md) after integration creates it.

## Bundled scripts

- `python scripts/captcha_preprocess_diagnostic.py --help`
- `python scripts/captcha_preprocess_diagnostic.py --self-test`
- `python scripts/captcha_preprocess_diagnostic.py --image CAPTCHA.jpg --labels-file texts.txt --npz data.npz`
- `python scripts/hash_image_tiles.py --help`
- `python scripts/hash_image_tiles.py --self-test`
- `python scripts/hash_image_tiles.py --image CAPTCHA.jpg --method phash`

The scripts are self-contained adaptations of the safe crop, tile, and hash logic. They do not depend on an original source checkout and do not call credentialed OCR or captcha download endpoints.

## Safety and boundary rules

- Treat bulk captcha downloading as an explicitly approved network workflow only. The legacy loop targeted 40,000 images and must not be run as an automatic diagnostic.
- Do not import or run the credentialed OCR helper from the source project. It requests a Baidu token at import time with placeholder credentials.
- Preserve the source geometry exactly: text crop rows `[3:22]`, columns `[120+offset:177+offset]`; eight `67x67` tiles from row starts `40,112` and column starts `5,77,149,221` for a `190x293` captcha.
- Preserve packed hash semantics: the standard hash artifact is 8 bytes per tile, normally represented as a 16-character hex string or an 8-byte `uint8` vector.

Files in this skill

  • SKILL.md3 KB
  • references/baidu-ocr-labeling.md1.9 KB
  • references/data-formats.md2.3 KB
  • references/hash-reference.md2.2 KB
  • references/troubleshooting.md2.8 KB
  • references/workflows.md4.3 KB
  • scripts/captcha_preprocess_diagnostic.py7.5 KB
  • scripts/hash_image_tiles.py7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.