Skip to content
Back to skills

Landmark Detection

ASecurity

"Routes face landmark prediction on single images, batches, and

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Landmark Detection?

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

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

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: landmark-detection
description: "Routes face landmark prediction on single images, batches, and
  directories with FaceAlignment."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Landmark Detection

Use this sub-skill when a user wants to detect facial landmarks from an image path, NumPy array, torch tensor, batch tensor, or directory of images. It covers 2D, 2.5D, and 3D landmark outputs, `get_landmarks` / `get_landmarks_from_image`, and the device / compile / batch-size knobs that affect inference.

## Common triggers

- `detect face landmarks`
- `run face_alignment on an image`
- `process a directory of faces`
- `compare 2D vs 3D landmarks`
- `return landmark scores`
- `return bounding boxes`
- `disable compile`
- `reduce batch size`

## Read first

- `references/workflows.md` for end-to-end image, batch, and directory recipes.
- `references/troubleshooting.md` when inference fails, no faces are detected, compile slows startup, or batch size causes memory pressure.
- `../../references/api-reference.md` for the exact constructor and method signatures.
- `scripts/detect_landmarks.py` for a reusable smoke / demo helper.

## Workflow

1. Pick `LandmarksType.TWO_D`, `LandmarksType.TWO_HALF_D`, or `LandmarksType.THREE_D`.
2. Choose `device='cpu'`, `device='cuda'`, or `device='mps'` explicitly.
3. Use `flip_input=True` for accuracy and `compile=False` when you want fast startup or a simpler smoke path.
4. Pass a small `max_batch_size` if the detector finds many faces or the host is memory constrained.
5. Prefer `get_landmarks_from_image` for one image and `get_landmarks_from_directory` for image trees; `get_landmarks` is only a deprecated alias.

## Output reminders

- Landmarks are returned as a list of faces.
- 2D and 2.5D results are shaped `(68, 2)`.
- 3D results are shaped `(68, 3)`.
- When no faces are found, the API returns `None` or `(None, None, None)` depending on `return_bboxes` and `return_landmark_score`.

## Handoff to detectors

If the user is choosing or troubleshooting a backend, route to `../detectors/` instead of changing landmark logic here.

Files in this skill

  • SKILL.md2.1 KB
  • references/troubleshooting.md2.1 KB
  • references/workflows.md3 KB
  • scripts/detect_landmarks.py8.5 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.