executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
face-recognitionUse face_recognition to detect faces, extract landmarks and encodings, compare identities, run the face_recognition and face_detection CLIs, and troubleshoot dlib/model installation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when the task involves the face_recognition Python package or
its installed console tools:
face_recognition or face_detection command-line tools;dlib, face_recognition_models, model-file, CLI, optional
dependency, or headless-display failures.Read repo provenance before relying on version-sensitive facts or refreshing this skill for a newer checkout.
For normal package use, install the public distribution and verify imports:
python -m pip install face_recognition
python - <<'PY'
import face_recognition
print(face_recognition.__version__)
PY
For editable repository development, install the checkout with its package
metadata (python -m pip install -e .) and match a Python version supported by
the current repo/tests when practical. The core runtime dependencies are
dlib, face_recognition_models, numpy, Pillow, and Click.
Run scripts/check_install.py when installation, model loading, or console scripts are uncertain:
python scripts/check_install.py
If imports fail, or if face_recognition_models warns about pkg_resources,
read troubleshooting before changing package
versions.
| If the user needs to... | Read or run |
|---|---|
Use Python functions (load_image_file, face_locations, face_landmarks, face_encodings, compare_faces, face_distance, batch_face_locations) | API reference and workflows |
| Try a safe headless API demo on user-provided images | scripts/showcase_api.py |
| Recognize identities or detect face boxes from the shell | CLI reference |
| Adapt optional image, video/webcam, KNN/SVM, Flask, Raspberry Pi, or batch/CNN patterns | workflows |
| Package or deploy an app using Docker, CUDA, cloud hosts, or PyInstaller | deployment notes |
| Diagnose install/import/runtime problems | troubleshooting and then scripts/check_install.py |
| Decide whether this skill is stale for a checkout | repo provenance |
examples/, docs/, tests/, or
image fixtures exist. Use user-provided images or the bundled scripts and
references in this skill.face_recognition.face_encodings(image)[0]; no face
means an empty list, not a usable encoding.(top, right, bottom, left). Crop with
image[top:bottom, left:right].batch_face_locations are useful for accuracy/batch workflows, but CUDA is
only an optional acceleration path, not a requirement for the core API.face_distance or CLI --show-distance to tune tolerance; lower
tolerance is stricter and can reduce false positives at the cost of more
false negatives.