zl程序教程

您现在的位置是:首页 >  后端

当前栏目

OpenCV每日函数 Object Detection目标检测模块 (4) 基于 DNN 的人脸检测和识别

Opencv识别模块人脸 函数 基于 检测 每日
2023-09-14 09:01:35 时间

一、概述

        基于 DNN 的人脸检测和识别,用于人脸检测的cv::FaceDetectorYN类和用于人脸识别的cv::FaceRecognizerSF类。此模块有两个模型(ONNX 格式)经过预训练并需要下载模型:

(1)FaceDetectorYN

        模型下载地址opencv_zoo/models/face_detection_yunet at master · opencv/opencv_zoo · GitHubModel Zoo For OpenCV DNN and Benchmarks. Contribute to opencv/opencv_zoo development by creating an account on GitHub.https://github.com/opencv/opencv_zoo/tree/master/models/face_detection_yunet        在WIDER Face验证集的结果:0.830(easy), 0.824(medium), 0.708(hard)。

(2)FaceRecog