跳到正文
cccskills
免费在 GitHub 公开

face-recognition

Use face_recognition to detect faces, extract landmarks and encodings, compare identities, run the face_recognition and face_detection CLIs, and troubleshoot dlib/model installation.

中文简介正在准备中。当前显示原文说明。

集成工具Docker
查看安装方法

包含的文件(10)

  • SKILL.md4.7 KB
  • references/api-reference.md6.1 KB
  • references/cli-reference.md4.0 KB
  • references/deployment.md3.6 KB
  • references/repo-provenance.md2.1 KB
  • references/repo-routing-metadata.json421 B
  • references/troubleshooting.md6.5 KB
  • references/workflows.md6.8 KB
  • scripts/check_install.py9.1 KB
  • scripts/showcase_api.py9.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Face Recognition Repo Skill

Purpose

Use this skill when the task involves the face_recognition Python package or its installed console tools:

  • detecting faces in photos or image folders;
  • extracting face landmarks or 128-dimensional encodings;
  • comparing known and unknown faces with distances or tolerance thresholds;
  • running the face_recognition or face_detection command-line tools;
  • adapting the repository's image, webcam/video, KNN/SVM, Flask, Raspberry Pi, Docker, or CUDA guidance without depending on the original checkout;
  • debugging 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.

Install and quick checks

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.

Route by task

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 imagesscripts/showcase_api.py
Recognize identities or detect face boxes from the shellCLI reference
Adapt optional image, video/webcam, KNN/SVM, Flask, Raspberry Pi, or batch/CNN patternsworkflows
Package or deploy an app using Docker, CUDA, cloud hosts, or PyInstallerdeployment notes
Diagnose install/import/runtime problemstroubleshooting and then scripts/check_install.py
Decide whether this skill is stale for a checkoutrepo provenance

Operating rules

  • Do not assume the original repository's examples/, docs/, tests/, or image fixtures exist. Use user-provided images or the bundled scripts and references in this skill.
  • Always guard calls like face_recognition.face_encodings(image)[0]; no face means an empty list, not a usable encoding.
  • Treat coordinates as (top, right, bottom, left). Crop with image[top:bottom, left:right].
  • The default face detector is CPU-friendly HOG. The CNN detector and batch_face_locations are useful for accuracy/batch workflows, but CUDA is only an optional acceleration path, not a requirement for the core API.
  • Use 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.
  • For known-person folders, the CLI uses the image file basename as the label and expects one usable face per known image.
  • Optional examples that need OpenCV, Flask, scikit-learn, scipy, Raspberry Pi camera hardware, GUI display, network streams, or Docker should stay optional unless the user explicitly asks for that workflow.
  • Face recognition has fairness, age, privacy, consent, and legal constraints. The repository documents poorer performance on children and variation across demographic groups; surface these caveats in user-facing applications.

Evidence-backed helper scripts

  • scripts/check_install.py checks importability, installed versions, core API smoke behavior, and CLI help availability.
  • scripts/showcase_api.py is a headless adaptation of the image detection, landmark, distance, comparison, and batch example patterns. It accepts image paths supplied by the user and never reads the original repository examples.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题