Skip to content
Back to skills

Mmocr

ASecurity

"Use MMOCR for OCR inference, dataset preparation, config-driven

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
developmentpythongobashtestingdebuggingapibackend

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Mmocr?

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

Security grade badge for Mmocr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mmocr/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mmocr)

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: mmocr
description: "Use MMOCR for OCR inference, dataset preparation, config-driven
  training/evaluation, model components, registries, and OpenMMLab OCR
  troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MMOCR

Use this repo skill when a task involves OpenMMLab MMOCR: text detection, text recognition, OCR chains, text spotting, key information extraction (KIE), OCR datasets, config-driven training/evaluation, or MMOCR component extension.

## Start here

1. Read [`references/package-overview.md`](references/package-overview.md) for the package capability map, public install shape, backend expectations, and bundled helper summary.
2. Run [`scripts/check_mmocr_environment.py`](scripts/check_mmocr_environment.py) when you need to verify imports, dependency versions, CUDA visibility, or optional config loading.
3. Use the route map below for workflow details.
4. Read [`references/troubleshooting.md`](references/troubleshooting.md) for cross-cutting install/import/backend/download/headless-display failures.
5. Check [`references/repo-provenance.md`](references/repo-provenance.md) before deciding whether this skill matches a newer checkout or package version.

## Minimal public install and import check

MMOCR depends on PyTorch, MMEngine, MMCV, and MMDetection. The project recommends OpenMIM for OpenMMLab packages:

```bash
pip install -U openmim
mim install mmengine
mim install mmcv
mim install mmdet
mim install mmocr
```

Then verify the environment from any working directory:

```bash
python scripts/check_mmocr_environment.py
```

For config work, verify that the config loads and uses the MMOCR registry scope:

```bash
python scripts/check_mmocr_environment.py --config CONFIG --require-default-scope mmocr
```

A CPU import/config check is not proof of CUDA, distributed, or Slurm readiness. Require real backend checks before claiming those paths work.

## Route map

| User asks for... | Read |
|---|---|
| OCR inference over images/folders/arrays, `MMOCRInferencer`, task inferencers, saved predictions/visualizations, model aliases, KIE chains, or headless inference troubleshooting | [`sub-skills/ocr-inference/SKILL.md`](sub-skills/ocr-inference/SKILL.md) |
| Config inspection, model-family selection, training/testing/evaluation command construction, work directories, checkpoints, AMP, TTA, distributed launch, or Slurm routing | [`sub-skills/training-evaluation-configs/SKILL.md`](sub-skills/training-evaluation-configs/SKILL.md) |
| Dataset preparation, dataset_zoo-style metadata, textdet/textrecog/textspotting/KIE annotation formats, LMDB recognition data, or dataset-layout debugging | [`sub-skills/data-preparation/SKILL.md`](sub-skills/data-preparation/SKILL.md) |
| Registries, DataSamples, transforms, model components, dictionaries, metrics, visualizers, custom modules, or OpenMMLab project extensions | [`sub-skills/model-api-components/SKILL.md`](sub-skills/model-api-components/SKILL.md) |

## Common decisions

- For image prediction, use `ocr-inference`; for dataset evaluation against a checkpoint, use `training-evaluation-configs`.
- For any train/test command, run the config smoke script first and confirm data/checkpoint availability before launching expensive work.
- For private datasets, start with `data-preparation` and validate the annotation/task choice before editing training configs.
- For registry or custom module errors, use `model-api-components` before trying another long run.
- For remote servers, prefer saved visualization files over GUI display.
- For pretrained aliases or dataset preparers, ask before using network downloads or shared caches.

## Backend policy

- CPU is enough for import checks, config smoke, dataset metadata preflight, registry probes, and many troubleshooting tasks.
- CUDA/GPU is optional but required for honest accelerated inference/training/evaluation verification.
- Distributed/NCCL and Slurm are optional operational backends; do not infer them from CPU success.
- Long training, large evaluation, model downloads, dataset downloads, and scheduler jobs need explicit user approval.

## Bundled helpers

- [`scripts/check_mmocr_environment.py`](scripts/check_mmocr_environment.py): root import/version/backend/config smoke.
- [`sub-skills/ocr-inference/scripts/mmocr_inference_smoke.py`](sub-skills/ocr-inference/scripts/mmocr_inference_smoke.py): inference preflight and opt-in execution helper.
- [`sub-skills/training-evaluation-configs/scripts/mmocr_config_smoke.py`](sub-skills/training-evaluation-configs/scripts/mmocr_config_smoke.py): config summary without training.
- [`sub-skills/data-preparation/scripts/mmocr_dataset_preflight.py`](sub-skills/data-preparation/scripts/mmocr_dataset_preflight.py): dataset metadata and tiny annotation checks.
- [`sub-skills/model-api-components/scripts/mmocr_component_registry_probe.py`](sub-skills/model-api-components/scripts/mmocr_component_registry_probe.py): registry, DataSample, and dictionary probe.

## Non-goals

- This skill does not replace MMOCR's package installation or model weights.
- It does not bundle full training/evaluation launchers, pretrained checkpoints, datasets, or GUI assets.
- It does not claim CUDA, distributed, or Slurm readiness unless the caller verifies those backends in their runtime.

Files in this skill

  • SKILL.md5.2 KB
  • references/package-overview.md4.5 KB
  • references/repo-provenance.md2.3 KB
  • references/repo-routing-metadata.json312 B
  • references/troubleshooting.md4.3 KB
  • scripts/check_mmocr_environment.py5.1 KB
  • sub-skills/data-preparation/SKILL.md3.5 KB
  • sub-skills/data-preparation/references/data-formats-and-datasets.md8.8 KB
  • sub-skills/data-preparation/references/data-preparation-workflows.md8.4 KB
  • sub-skills/data-preparation/references/troubleshooting.md6.9 KB
  • sub-skills/data-preparation/scripts/mmocr_dataset_preflight.py14.2 KB
  • sub-skills/model-api-components/SKILL.md2.9 KB
  • sub-skills/model-api-components/references/component-api-reference.md16.4 KB
  • sub-skills/model-api-components/references/extension-patterns.md11.6 KB
  • sub-skills/model-api-components/references/troubleshooting.md12.7 KB
  • sub-skills/model-api-components/scripts/mmocr_component_registry_probe.py9.3 KB
  • sub-skills/ocr-inference/SKILL.md3.3 KB
  • sub-skills/ocr-inference/references/api-reference.md8.4 KB
  • sub-skills/ocr-inference/references/inference-workflows.md8 KB
  • sub-skills/ocr-inference/references/troubleshooting.md8.1 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.