Find faces, text (OCR, Japanese and English, including vertical Japanese) and objects in a video's frames or in an image, as measured boxes with time, pixel box, score and model hash, link them over time into redact-ready rectangles, measure shot boundaries (cuts and dissolves) over every frame, turn face tracks into a reframing path for 9:16, 1:1 or 4:5, say who is speaking and which camera shows them best as a multicam switch list, and flag personal and patient data (ids, dates of birth, names, phones, addresses, faces) on slides for a person to confirm before it is blurred, and rank frames for a thumbnail by eyes open, sharpness and face angle. Use when asked to find (and then blur) faces, name badges, screens or other things in event footage, read text on slides, screenshots or signs, check where people or objects are in a shot, list a video's shots and cuts, plan a vertical / square reframe that follows the speaker, cut a multicam panel or interview to whoever is talking, check slides for patient data before publishing, or pick a thumbnail frame where nobody blinks. Local and offline (YuNet, Tesseract, YOLOX, PySceneDetect on CPU; PP-OCRv6 for text and RF-DETR for objects as optional second engines); frames come from ffmpeg-skill. It never identifies anyone.
Trending skills
7-day visitors to each skill page
Ships in detection-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run detection <command> ... --json (installed by pip install -e .; engines by pip install -e '.[faces]', '.[objects]', and the tesseract binary for text). Every command prints one JSON document. detection doctor --json says which engines are ready and, if not, what to install and where to get the model files (it never downloads anything).
| Task | Command |
|---|---|
| Faces once a second | detection faces talk.mp4 --every 1 -o faces.json --json |
| Faces at chosen times / once per scene | --at 12.5,40 / --scenes |
| Text on a slide or screenshot | detection text slide.png -o text.json --json (default --lang jpn+eng) |
| English only / vertical Japanese | --lang eng / --vertical |
| Sparse text in a video frame (signs, badges) | detection text hall.mp4 --every 2 --psm 11 -o text.json |
| People and laptops | detection objects hall.mp4 --every 2 --classes person,laptop -o objects.json --json |
| Text with PP-OCRv6 (optional) | detection text slide.png --engine ppocrv6 -o text.json --json (only when doctor --json shows optional_ready.text_ppocrv6: true) |
| Objects with RF-DETR (optional) | detection objects hall.mp4 --engine rfdetr --every 2 -o objects.json --json (only when doctor --json shows optional_ready.objects_rfdetr: true) |
| Boxes over time, rectangles to blur | detection tracks faces.json -o tracks.json --json |
| Shots and cuts, frame accurate | detection shots talk.mp4 -o shots.json --json (every frame; pip install -e '.[shots]') |
| Crop window that follows the speaker | detection reframe tracks.json --aspect 9:16 --shots shots.json -o reframe.json --json |
| Faces with size, pose, sharpness, mouth contrast, eyes open | detection faces camA.mp4 --every 0.12 --attributes -o a.json --json |
| Multicam: switch to whoever speaks | detection speakers --camera a_tracks.json --camera b_tracks.json [--turns turns.json] [--offsets 0,0.42] -o speakers.json --json |
| Patient / personal data on slides | detection pii text.json [--faces faces.json] [--locale intl,ja-JP] -o pii.json --json |
| Thumbnail / take candidates | detection rank faces.json --top 5 -o rank.json --json (from faces --attributes) |
| Check a file | detection check faces.json --json |
| What this skill declares / needs | detection contract --json, detection doctor --json |
Model files: --models-dir or DETECTION_MODELS_DIR (YuNet face_detection_yunet_2026may.onnx, a YOLOX yolox_*.onnx; optional PP-OCRv6_medium_det.onnx + PP-OCRv6_medium_rec.onnx + PP-OCRv6_medium_rec.yml, rfdetr-small.onnx or rfdetr-medium.onnx); Tesseract data: --tessdata-dir or DETECTION_TESSDATA_DIR, else tesseract's own. ffmpeg-skill: --ffmpeg-skill, DETECTION_FFMPEG_SKILL_DIR, or ~/.claude/skills/ffmpeg-skill. An image input needs no ffmpeg-skill.
Blur faces or badges in event footage: faces (or text / objects) -> tracks -> for each tracks[].redact rectangle, cut [start, end] and run ffmpeg-skill redact --x --y --width --height on that segment. Sample densely enough for motion (--every 0.2 to 0.5 for people walking) and keep --extend so the blur starts before and ends after the samples that saw the face. For someone walking across the frame add --window 1 to tracks, so each second gets its own rectangle instead of one wide band.
Slide or screen text for slide-sync, stepcap, chapters or search: text on the slide image or on video frames at slide changes (--scenes, or times from slide-sync).
Shot list for the edit view or a cut check: shots (cuts on their frame, dissolves and fades as gradual with their span). ffmpeg-skill scenes is the quick alternative when frame accuracy does not matter. --engine transnetv2 only when doctor shows its model OK.
Reframe to 9:16 / 1:1 / 4:5: faces --every 0.2 -> tracks -> shots -> reframe --aspect 9:16 --shots shots.json (add --objects with person tracks for shots without a visible face). Hand windows[] (per time) or shots[] (one window per shot, for ffmpeg-skill crop today) to video-editing; this skill crops nothing.
Multicam to the speaker: per camera faces --every 0.12 --attributes -> tracks; then speakers --camera cam0 --camera cam1 ... in ffmpeg-skill multicam's input order, --offsets from multicam --offsets-only --json (offsets_seconds), and --turns from diarization-skill when it is installed (the switch then follows the turns). Hand switch to multicam --switch. This skill cuts nothing.
Personal and patient data before publishing a medical or case talk: text (line level; --lang eng, or jpn+eng for Japanese slides) on the slide images or frames, faces for clinical photos, then pii text.json --faces faces.json with the locales of the material (intl default; add en-US, en-GB or ja-JP). Show every region (excerpt, reason) to a person; only the confirmed redact[] spans go to ffmpeg-skill redact.
Second engines (ADR-008): the defaults stay Tesseract and YOLOX. Use --engine ppocrv6 for horizontal screen or slide text when the user asks for it or Tesseract's result is poor and doctor --json shows optional_ready.text_ppocrv6: true (the files and ONNX Runtime; ppocrv6_models OK alone is not enough); it reads lines only (no --vertical, --psm, --lang, word level: keep Tesseract for vertical Japanese). Use --engine rfdetr the same way for objects, when optional_ready.objects_rfdetr is true. If the files are missing, relay doctor's download (PP-OCRv6) or export (RF-DETR) commands to the user; never download or export them yourself.
Thumbnail or representative take: faces --every 0.5 --attributes (or --scenes) -> rank --top 5; hand the best frames' times to thumbnail-skill. Use --all-faces for group shots.
label is always null for faces and the skill has no recognition. Track ids (track_001) are not identities either: they say boxes overlapped from one sample to the next; two people crossing can swap ids, and a person leaving and returning gets a new id.sampling.method, every, the number of frames). Something on screen between samples can be missed; a face that is only visible for 0.3 s can fall between one-second samples. For redaction, say that the result needs a human check of the rendered video before it is published.--min-score (faces 0.6, objects 0.3, text 0.3) trades misses for false alarms. If you lowered or raised it, say so.label as it is; do not fix spelling silently. Mention the language setting and that Japanese and small or stylised text have more errors. If engine.files[].variant is not tessdata_best, say the data variant differs from the one the ADR recommends.engine.id is tesseract or ppocrv6, yolox or rfdetr; their scores are not comparable with each other. PP-OCRv6 and RF-DETR are measured only on this repository's small synthetic fixtures (clean rendered slides, three photos; README "Measured here"), not on real footage; say so when you report their results, and quote any warning (an unknown sha256, an RF-DETR file whose licence was not checked).gradual comes from a blend test (PySceneDetect) or a network (TransNetV2). A reframe is a heuristic: report counts.subject_outside and each shot's subject_inside_fraction; a subject is a box track, not a person.method.name), and that mouth motion is not speech (laughing, chewing, a hand at the mouth move it; a speaker turned away is not seen). Quote ranges[].reason; a SPEAKER_nn or a track id names nobody. Recommend watching the cut before publishing.CONFIRM: ask, never blur or drop on your own. Say which locales were used, that a bare name or a date without its keyword is not found and OCR misreads hide data, so "no region" is not "no personal data". Never paste the matched values into a message; excerpt is masked on purpose.eyes_open is an edge measure, not a blink detector (glasses, squints, small faces fool it); quote the parts (eyes_open, sharpness, frontal, size) and let a person or thumbnail-skill choose.doctor's install line. Never report "no faces" when the run did not happen.detections.json with any redaction made from it.Exit codes: 0 ok, 2 invalid input or arguments, 3 an engine, model file, tessdata or ffmpeg-skill missing (see doctor), 4 the engine or frame extraction failed or timed out.
Recognising or naming people, cutting between cameras or aligning them (ffmpeg-skill multicam), diarization (diarization-skill), cropping or applying a reframe (video-editing-skill, ffmpeg-skill), decoding video (ffmpeg-skill look / scenes), blurring (ffmpeg-skill redact), slide-change detection (slide-sync-skill), segmentation masks or pose, correcting OCR text, downloading model files (a one-time manual step, see README).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/detection-skill:detection-skillfrom detection-skill
detection-skill@velisa is listed by kajisho5/velisa — review the source before installing
npx claudepluginhub kajisho5/velisa --plugin detection-skill