# 面部关键点检测

面部关键点检测是一种计算机视觉方法，可在图像中自动定位人脸上预定义的基准点，例如眼角、鼻尖和嘴部边缘。检测器的输出是一组点坐标，其数量由标注惯例固定：广泛使用的数据集分别定义了19个关键点（AFLW）、29个（COFW）、68个（300-W）和98个（WFLW）。<sup>[1](https://arxiv.org/html/2601.12863)</sup> 面向移动端的网格模型则更进一步：MediaPipe Face Landmarker输出478个3D关键点，<sup>[2](https://developers.google.com/edge/mediapipe/solutions/vision/face_landmarker)</sup> 而旧版MediaPipe Face Mesh文档描述的是468个3D关键点，当refine_landmarks选项启用注意力模型并增加10个虹膜关键点时，数量升至478个；这两个数字反映的是不同设置，而非分歧。<sup>[3](https://mediapipe.readthedocs.io/en/latest/solutions/face_mesh.html?highlight=face)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 一组固定的(x, y)坐标，3D网格模型则为(x, y, z)；300-W提交格式为.pts格式的68 × 2矩阵<sup>[4](https://ibug.doc.ic.ac.uk/resources/300-W/)</sup> |
| 常见惯例 | 19（AFLW）、29（COFW）、68（300-W，MultiPIE方案）、98（WFLW）；MediaPipe网格：468或478个3D点<sup>[1](https://arxiv.org/html/2601.12863)</sup><sup> • </sup><sup>[2](https://developers.google.com/edge/mediapipe/solutions/vision/face_landmarker)</sup> |
| 标准指标 | 归一化平均误差（NME）：平均点对点欧氏距离除以眼间距<sup>[5](https://www.cv-foundation.org/openaccess/content_iccv_workshops_2013/W11/papers/Sagonas_300_Faces_in-the-Wild_2013_ICCV_paper.pdf)</sup> |
| 300-W最佳NME | 2.87（STAR损失，smooth-l1距离），位居300-W全集排行榜首位，领先于ADNet（2026.01）的2.93和DTLD（2022）的2.96%；FGTBT在53.4M参数下报告3.06%<sup>[1](https://arxiv.org/html/2601.12863)</sup> |
| 经典实时速度 | ESR在Core i7 2.93 GHz CPU上约15毫秒预测87个关键点；LBF在300-W上达到3000 FPS<sup>[6](https://doi.org/10.1007/s11263-013-0667-3)</sup><sup> • </sup><sup>[7](https://air.unimi.it/retrieve/dfa8b9a8-5bdf-748b-e053-3a05fe0a3a96/BDCC-03-00014.pdf)</sup> |
| 主要失效模式 | 遮挡、极端姿态、非受控环境（正面检测器在正面Menpo集上准确率降至67.35%）<sup>[8](https://link.springer.com/article/10.1186/s13640-018-0324-4)</sup> |

## 工作原理

早期的生成式方法将统计模型拟合到图像上。主动形状模型通过操控形状模型来描述目标图像中结构的位置，而主动外观模型（AAM）则操控一个能够合成新外观的模型，该模型由控制形状和纹理的PCA系数构建。<sup>[9](https://www.face-rec.org/algorithms/AAM/app_models.pdf)</sup><sup> • </sup><sup>[10](https://www.cse.msu.edu/~rossarun/BiometricsTextBook/Papers/Face/Cootes_AAM_PAMI01.pdf)</sup> 约束局部模型（CLM）方法则不同，它从全局面部形状模式以及每个关键点周围独立的局部外观来推断关键点位置，后者比整体外观更容易捕捉，且对光照和遮挡更鲁棒。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup>

综述文献将基于回归的方法分为直接回归、级联回归和基于深度学习的回归。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup> 级联回归从关键点位置的初始猜测（通常是平均脸）开始，跨阶段更新位置，每个阶段都有自己的回归函数。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup> 监督下降法将对齐表述为非线性最小二乘问题，从初始形状估计位置更新，以最小化SIFT等局部块外观特征的距离。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup> 直接回归一次预测所有坐标，无需初始化。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup> 热图回归为每个关键点构建2D热图并读取峰值位置，这与直接预测\( x, y \)坐标的模型形成对比。<sup>[12](https://arxiv.org/pdf/2101.10808v2)</sup> 热图方法由于空间一致性通常表现更好，但存在不可微的后处理、量化误差以及对遮挡的脆弱性等问题。<sup>[13](https://openaccess.thecvf.com/content/CVPR2022/papers/Li_Towards_Accurate_Facial_Landmark_Detection_via_Cascaded_Transformers_CVPR_2022_paper.pdf)</sup>

精度通过归一化定位误差来衡量，

\[ \mathrm{NLE} = \frac{1}{N \cdot d} \sum_{i=1}^{N} \left\| \widehat{\mathbf{p}}_{i} - \mathbf{p}_{i} \right\|_{2} \]

其中\( N \)是关键点数量，归一化因子\( d \)为眼间距（外眼角）或瞳间距。<sup>[14](https://ar5iv.labs.arxiv.org/html/1805.01760)</sup> 300-W挑战赛使用由外眼角距离归一化的点对点欧氏距离，在全部68个点以及不含面部边界的51个内部点上进行评估。<sup>[5](https://www.cv-foundation.org/openaccess/content_iccv_workshops_2013/W11/papers/Sagonas_300_Faces_in-the-Wild_2013_ICCV_paper.pdf)</sup>

## 实施方法

典型流程分三步：检测人脸边界框，在其中运行关键点模型，然后利用这些点进行对齐或裁剪。在Dlib中，基于HOG的人脸检测器提供边界框；一篇综述发现Dlib检测器在所有测试样例中均优于OpenCV基于Viola-Jones的检测器，误报更少，且两者在受控环境图像上表现更好。<sup>[8](https://link.springer.com/article/10.1186/s13640-018-0324-4)</sup> Dlib的关键点模型是回归树集成：从训练数据的平均形状开始，居中并缩放至检测器的边界框，每棵回归树在平方误差和损失下通过梯度树提升训练。<sup>[15](https://doi.org/10.13140/2.1.1212.2243)</sup> 显式形状回归是一种相关设计，用随机采样的初始形状运行回归器五次并取中位数结果；它在[Intel Core i7](https://www.edgepedia.org/zh/intel-core-i7) 2.93 GHz CPU上约15毫秒预测一个形状。<sup>[6](https://doi.org/10.1007/s11263-013-0667-3)</sup>

MediaPipe的Face Landmarker串联了192 × 192输入的人脸检测器、256 × 256输入的FaceMesh-V2网格模型和1 × 146 × 2输入的混合形状模型，均使用float16；网格输出478个3D关键点，混合形状模型预测52个表情分数。<sup>[2](https://developers.google.com/edge/mediapipe/solutions/vision/face_landmarker)</sup>

## 起源

主动外观模型由T.F.库茨（T.F. Cootes）、G.J.爱德华兹（G.J. Edwards）和C.J.泰勒（C.J. Taylor）于2001年在《[IEEE模式分析与机器智能汇刊](https://www.edgepedia.org/zh/ieee-transactions-on-pattern-analysis-and-machine-intelligence)》上报告；其实验使用了400张人脸图像，每张标注了主要特征周围的68个点。<sup>[16](https://doi.org/10.1109/34.927467)</sup><sup> • </sup><sup>[10](https://www.cse.msu.edu/~rossarun/BiometricsTextBook/Papers/Face/Cootes_AAM_PAMI01.pdf)</sup> 《基于显式形状回归的人脸对齐》由曹旭东（Xudong Cao）及同事于2013年在《[国际计算机视觉杂志](https://www.edgepedia.org/zh/international-journal-of-computer-vision)》上发表，<sup>[6](https://doi.org/10.1007/s11263-013-0667-3)</sup> 《基于回归树集成的一毫秒人脸对齐》由瓦希德·卡泽米（Vahid Kazemi）和约瑟芬·沙利文（Josephine Sullivan）于2014年发表。<sup>[15](https://doi.org/10.13140/2.1.1212.2243)</sup>

300-W基准是“非受控环境下的自动面部关键点检测挑战赛”，与在澳大利亚悉尼举行的ICCV联合举办。<sup>[4](https://ibug.doc.ic.ac.uk/resources/300-W/)</sup> 其组织者使用MultiPIE成熟的68点标注重新标注了非受控环境数据集LFPW、AFW、HELEN和XM2VTS，最终标注由另一位标注者手动校正；挑战赛基线是带边缘结构特征的project-out逆向组合AAM。<sup>[5](https://www.cv-foundation.org/openaccess/content_iccv_workshops_2013/W11/papers/Sagonas_300_Faces_in-the-Wild_2013_ICCV_paper.pdf)</sup> 68点MultiPIE方案成为AFLW、BU-4DFE和Helen等数据库支持的通用惯例。<sup>[17](https://link.springer.com/article/10.1186/s13640-021-00549-3)</sup>

## 变体

除AAM、CLM、ERT和SDM之外，综述文献将显式形状回归和TCDCN与ERT并列为关键点对齐方法。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup> HyperFace由拉吉夫·兰詹（Rajeev Ranjan）、维沙尔·M·帕特尔（Vishal M. Patel）和拉玛·切拉帕（Rama Chellappa）提出（IEEE TPAMI，2017），是一个多任务框架，在一个网络中涵盖人脸检测、关键点定位、姿态估计和性别识别。<sup>[18](https://doi.org/10.1109/tpami.2017.2781233)</sup> HRNet通过在多尺度分支间连接和交换信息获得高分辨率表示，<sup>[13](https://openaccess.thecvf.com/content/CVPR2022/papers/Li_Towards_Accurate_Facial_Landmark_Detection_via_Cascaded_Transformers_CVPR_2022_paper.pdf)</sup> 可变形Transformer关键点检测器（DTLD）由李辉（Hui Li）及同事提出（arXiv，2022），是一个可端到端训练的坐标回归Transformer。<sup>[19](https://doi.org/10.48550/arxiv.2208.10808)</sup> 在300-W上，非深度方法从DRMF（2013）的9.22% NME降至CFSS（2015）的5.76%，深度方法则从TCDCN（2014）的5.54%推进到DAN（2017）的3.59%。<sup>[7](https://air.unimi.it/retrieve/dfa8b9a8-5bdf-748b-e053-3a05fe0a3a96/BDCC-03-00014.pdf)</sup>

3D方法改变了目标。3D密集人脸对齐（3DDFA）由朱翔宇（Xiangyu Zhu）、刘小明（Xiaoming Liu）、雷震（Zhen Lei）和李子青（Stan Z. Li）提出（arXiv，2018），通过级联卷积网络拟合密集3D形变模型，以处理偏航角高达90度的全姿态范围；优化目标从关键点位置转向姿态（尺度、旋转、平移）和形变（形状与表情）参数。<sup>[20](https://doi.org/10.48550/arxiv.1804.01005)</sup><sup> • </sup><sup>[21](http://www.cbsr.ia.ac.cn/users/zlei/papers/XYZHU-TPAMI-2019.pdf)</sup> 3D人脸对齐网络将2D到3D网络与堆叠热图子网络结合，在预测2D关键点的同时预测Z坐标。<sup>[17](https://link.springer.com/article/10.1186/s13640-021-00549-3)</sup> 密集人脸对齐（DeFA）训练CNN估计3D人脸形状，使其对齐关键点、面部轮廓和SIFT特征点，并可实时运行，而此前大多数方法估计的是68个关键点等稀疏集合。

该领域沿两种范式分化：坐标回归计算高效且实时，热图回归通过空间一致性获得更优性能；Transformer近来被引入两者之中。<sup>[1](https://arxiv.org/html/2601.12863)</sup> LCRRT是一种关键点聚类关系推理Transformer，通过建模通用面部结构执行通用面部关键点检测，在主流基准上性能与最先进方法相当。<sup>[22](https://dl.acm.org/doi/10.1007/s11263-026-02881-5)</sup>

## 应用

面部关键点检测是人脸识别、面部表情分析、人脸正面化和3D人脸重建的关键步骤。<sup>[13](https://openaccess.thecvf.com/content/CVPR2022/papers/Li_Towards_Accurate_Facial_Landmark_Detection_via_Cascaded_Transformers_CVPR_2022_paper.pdf)</sup> 对于视频，1DFormer在300VW上进行面部关键点跟踪评估，该数据集包含114个非受控环境下的视频，每帧标注68个关键点。<sup>[23](https://ar5iv.labs.arxiv.org/html/2311.00241)</sup> MediaPipe文档声称可在移动设备上实时运行。<sup>[3](https://mediapipe.readthedocs.io/en/latest/solutions/face_mesh.html?highlight=face)</sup>

## 局限与替代方案

遮挡是一个可量化的弱点。基于热图的方法被描述为对遮挡脆弱，<sup>[13](https://openaccess.thecvf.com/content/CVPR2022/papers/Li_Towards_Accurate_Facial_Landmark_Detection_via_Cascaded_Transformers_CVPR_2022_paper.pdf)</sup> 基准数字也证实了这一点：FGTBT在COFW遮挡数据集上达到4.79% NME、0.59%失败率，在WFLW遮挡子集上为5.48% NME，均差于其在完整300-W集上的3.06%。<sup>[1](https://arxiv.org/html/2601.12863)</sup> [环境](https://www.edgepedia.org/zh/environment)同样重要：现成的正面人脸检测器在非受控环境的正面Menpo集上准确率降至67.35%，而此前在受控的BioID和MUCT数据集上表现最佳。<sup>[8](https://link.springer.com/article/10.1186/s13640-018-0324-4)</sup> 即使是深度学习方法也仍受视角影响，尤其是性能评估中很少考虑的镜头效应，尽管3DSTN、PRNet和3D-FAN在对齐方面通常优于传统统计方法。<sup>[17](https://link.springer.com/article/10.1186/s13640-021-00549-3)</sup> CLM设计依赖每个关键点周围独立的局部外观而非整体模型，是应对光照和遮挡的经典缓解方案。<sup>[11](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)</sup>

## References

1. [FGTBT: Frequency-Guided Task-Balancing Transformer for Unified Facial Landmark Detection](https://arxiv.org/html/2601.12863)
2. [Face landmark detection guide | Google AI Edge](https://developers.google.com/edge/mediapipe/solutions/vision/face_landmarker)
3. [MediaPipe Face Mesh (legacy docs)](https://mediapipe.readthedocs.io/en/latest/solutions/face_mesh.html?highlight=face)
4. [iBUG resources: 300 Faces In-the-Wild Challenge (300-W), ICCV 2013](https://ibug.doc.ic.ac.uk/resources/300-W/)
5. [300 Faces in-the-Wild Challenge: The First Facial Landmark Localization Challenge](https://www.cv-foundation.org/openaccess/content_iccv_workshops_2013/W11/papers/Sagonas_300_Faces_in-the-Wild_2013_ICCV_paper.pdf)
6. [Xudong Cao and colleagues (2013). Face Alignment by Explicit Shape Regression. International Journal of Computer Vision.](https://doi.org/10.1007/s11263-013-0667-3)
7. [A Review of Facial Landmark Extraction in 2D Images and Videos Using Deep Learning](https://air.unimi.it/retrieve/dfa8b9a8-5bdf-748b-e053-3a05fe0a3a96/BDCC-03-00014.pdf)
8. [A review of image-based automatic facial landmark identification techniques](https://link.springer.com/article/10.1186/s13640-018-0324-4)
9. [Statistical Models of Appearance for Computer Vision](https://www.face-rec.org/algorithms/AAM/app_models.pdf)
10. [Active Appearance Models (IEEE PAMI)](https://www.cse.msu.edu/~rossarun/BiometricsTextBook/Papers/Face/Cootes_AAM_PAMI01.pdf)
11. [Facial Landmark Detection: A Literature Survey](https://sites.ecse.rpi.edu/~cvrl/Publication/pdf/Wu2018.pdf)
12. [Fast Facial Landmark Detection and Applications: A Survey (arXiv preprint)](https://arxiv.org/pdf/2101.10808v2)
13. [Towards Accurate Facial Landmark Detection via Cascaded Transformers (DTLD, CVPR 2022)](https://openaccess.thecvf.com/content/CVPR2022/papers/Li_Towards_Accurate_Facial_Landmark_Detection_via_Cascaded_Transformers_CVPR_2022_paper.pdf)
14. [Facial Landmark Point Localization using Coarse-to-Fine Deep Recurrent Neural Network](https://ar5iv.labs.arxiv.org/html/1805.01760)
15. [Kazemi, Vahid, Sullivan, Josephine (2014). One Millisecond Face Alignment with an Ensemble of Regression Trees. .](https://doi.org/10.13140/2.1.1212.2243)
16. [T.F. Cootes, G.J. Edwards, C.J. Taylor (2001). Active appearance models. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.927467)
17. [Evaluating effects of focal length and viewing angle in a comparison of recent face landmark and alignment methods](https://link.springer.com/article/10.1186/s13640-021-00549-3)
18. [Rajeev Ranjan, Vishal M. Patel, Rama Chellappa (2017). HyperFace: A Deep Multi-Task Learning Framework for Face Detection, Landmark Localization, Pose Estimation, and Gender Recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2017.2781233)
19. [Li, Hui and colleagues (2022). Towards Accurate Facial Landmark Detection via Cascaded Transformers. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2208.10808)
20. [Zhu, Xiangyu and colleagues (2018). Face Alignment in Full Pose Range: A 3D Total Solution. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1804.01005)
21. [Face Alignment in Full Pose Range: A 3D Total Solution (3DDFA, TPAMI)](http://www.cbsr.ia.ac.cn/users/zlei/papers/XYZHU-TPAMI-2019.pdf)
22. [Universal Facial Landmark Detection by Landmark-Clustering Relation-Reasoning Transformer (IJCV)](https://dl.acm.org/doi/10.1007/s11263-026-02881-5)
23. [1DFormer: a Transformer Architecture Learning 1D Landmark Representations for Facial Landmark Tracking](https://ar5iv.labs.arxiv.org/html/2311.00241)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Feature detection and description

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/facial-landmark-detection

English original: https://www.edgepedia.org/facial-landmark-detection
