{"id":13439108,"url":"https://github.com/hpc203/libface-sface_detect-recognition-opencv","last_synced_at":"2025-03-20T07:32:05.242Z","repository":{"id":60241024,"uuid":"425207048","full_name":"hpc203/libface-sface_detect-recognition-opencv","owner":"hpc203","description":"使用OpenCV部署libface人脸检测和SFace人脸识别，包含C++和Python两种版本的程序，仅仅只依赖OpenCV库就能运行","archived":false,"fork":false,"pushed_at":"2021-11-15T01:41:47.000Z","size":2027,"stargazers_count":89,"open_issues_count":9,"forks_count":23,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-01T03:28:37.799Z","etag":null,"topics":["deep-learning","face-detection","face-recognition","opencv"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpc203.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-06T09:45:38.000Z","updated_at":"2024-07-21T14:52:16.000Z","dependencies_parsed_at":"2022-09-27T04:40:15.212Z","dependency_job_id":null,"html_url":"https://github.com/hpc203/libface-sface_detect-recognition-opencv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Flibface-sface_detect-recognition-opencv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Flibface-sface_detect-recognition-opencv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Flibface-sface_detect-recognition-opencv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Flibface-sface_detect-recognition-opencv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpc203","download_url":"https://codeload.github.com/hpc203/libface-sface_detect-recognition-opencv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221739656,"owners_count":16872767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","face-detection","face-recognition","opencv"],"created_at":"2024-07-31T03:01:11.201Z","updated_at":"2024-10-27T22:30:19.646Z","avatar_url":"https://github.com/hpc203.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# libface-sface_detect-recognition-opencv\n使用OpenCV部署libface人脸检测和SFace人脸识别，包含C++和Python两种版本的程序，仅仅只依赖OpenCV库就能运行\n\n看到最近发布了opencv4.5.4里新增了人脸检测和人脸识别模块，这两个模块是由人脸识别领域的两位大牛设计的，\n其中人脸检测是南科大的于仕琪老师设计的，人脸识别模块是北邮的邓伟洪教授设计的，其研究成果SFace发表于\n图像处理顶级期刊IEEE Transactions on Image Processing。\n人脸检测示例程序在opencv-master/samples/dnn/face_detect.cpp里，起初我在win10系统里，在visual stdio 2019\n里新建一个空项目，然后把opencv-master/samples/dnn/face_detect.cpp拷贝进来作为主程序，尝试编译，发现编译不通过。\n仔细看代码可以发现face_detect.cpp里使用了类的继承和虚函数重写，这说明依赖包含了其他的.cpp和.hpp头文件的。因此我就编写一套程序，\n人脸检测和人脸识别程序从opencv源码里剥离出来，只需编写一个main.cpp文件，就能运行人脸检测和人脸识别程序。整个程序只依赖opencv\n就能运行，从而彻底摆脱对任何深度学习框架的依赖。\n于仕琪老师设计的libface人脸检测，有一个特点就是输入图像的尺寸是动态的，也就是说对输入图像不需要做resize到固定尺寸，就能输入到\n神经网络做推理的，此前我发布的一些人脸检测程序都没有做到这一点，而且模型文件.onnx只有336KB。因此，这套人脸检测模型是\n非常有应用价值的。\n\n\n模型文件在百度云盘，链接：https://pan.baidu.com/s/1NpoWW6UVEnmghxjxq4jCJw \n提取码：k7vz\n\n在下载完代码之后，在visual stdio 2019里新建一个空项目，配置opencv，然后把main.cpp和weights文件拷贝进去，接下来编译运行就可以了\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Flibface-sface_detect-recognition-opencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpc203%2Flibface-sface_detect-recognition-opencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Flibface-sface_detect-recognition-opencv/lists"}