Skip to content
Back to skills

Media Processing

ASecurity

"Use MMCV image, video, optical-flow, visualization, and array

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

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Media Processing?

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

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

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: media-processing
description: "Use MMCV image, video, optical-flow, visualization, and array
  quantization utilities safely without reopening MMCV source docs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MMCV Media Processing

Use this sub-skill when a task asks for MMCV media utilities: reading or writing images, decoding image bytes, resizing, cropping, flipping, padding, rotating, normalizing or denormalizing arrays, color conversions, photometric helpers, converting tensors to images, reading or writing video/frames, ffmpeg-backed video edits, dense or sparse optical flow IO/quantization/warping, drawing boxes, converting flow to RGB, or scalar array quantization.

## Read First

- `references/api-reference.md` for compact signatures, accepted parameters, return shapes, and the most common gotchas.
- `references/workflows.md` for copyable recipes that combine image, video, flow, visualization, and quantization calls.
- `references/troubleshooting.md` for symptoms and recovery steps around color order, shape order, headless display, codecs, optional backends, dtype/range, and flow shape issues.
- `scripts/media_smoke_check.py` to verify the installed `mmcv` media surface with deterministic tiny arrays and temporary files.

## Scope Boundaries

- Use this sub-skill for functional APIs in `mmcv.image`, `mmcv.video`, `mmcv.visualization`, and `mmcv.arraymisc`.
- Route transform pipeline classes such as `Resize`, `Compose`, and `LoadImageFromFile` to `../data-transforms/`.
- Route CNN/layer builders to `../cnn-model-building/`.
- Route compiled `mmcv.ops` availability, build failures, and `_ext` import issues to `../ops-and-builds/`; this media surface works in `mmcv-lite` when its Python dependencies are present.

## Safety Defaults

- Prefer `show=False` plus `out_file=...` or returned arrays for visualization in headless sessions; avoid `imshow()` and `flowshow()` unless a GUI display is definitely available.
- Treat image arrays as `H, W, C`, but many MMCV size parameters are `(width, height)` and padding target `shape` is `(height, width)`.
- Treat color tuples and default image reads as BGR unless you explicitly request `channel_order='rgb'` or call a conversion helper.
- Use `backend_args` rather than deprecated `file_client_args` when reading from non-local file backends.

## Quick Validation

Run the bundled check in any environment where MMCV is installed:

```bash
python scripts/media_smoke_check.py --help
python scripts/media_smoke_check.py
```

The script checks imports, image bytes round-trip, BGR/RGB conversion, resizing scale reports, normalization/denormalization, array quantization, and optional flow helpers without reading the original repository checkout.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md11.9 KB
  • references/troubleshooting.md8.2 KB
  • references/workflows.md7.9 KB
  • scripts/media_smoke_check.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.