首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

数字图像处理-人脸识别(解密)

后端 33.53MB 17 需要积分: 1
立即下载

资源介绍:

数字图像处理-人脸识别(解密)
#include "cv.h" #include "highgui.h" #include #include static CvHaarClassifierCascade* cascade = 0; static CvMemStorage* storage = 0; void detect_and_draw( IplImage* image ); const char* cascade_name ="haarcascade_frontalface_alt.xml";//人脸检测要用到的分类器 int main(int argc, char* argv[]) { //加载人脸检测所用的分类器 cascade = (CvHaarClassifierCascade*)cvLoad( cascade_name, 0, 0, 0 ); if( !cascade ) { fprintf( stderr, "ERROR: Could not load classifier cascade\n" ); return -1; } //动态存储结构,用来存储人脸在图像中的位置 storage = cvCreateMemStorage(0); cvNamedWindow( "result", 1 ); const char* filename = "Lena.jpg"; //待检测图像 IplImage* image = cvLoadImage( filename, 1 ); //加载图像 //对加载的图像进行检测 detect_and_draw( image ); cvWaitKey(0); cvReleaseImage( &image ); cvDestroyWindow("result"); return 0; } void detect_and_draw( IplImage* img ) { static CvScalar colors[] = { {0,0,255}, {0,128,255}, {0,255,255}, {0,255,0}, {255,128,0}, {255,255,0}, {255,0,0}, {255,0,255} }; double scale = 1.3; IplImage* gray = cvCreateImage( cvSize(img->width,img->height), 8, 1 ); IplImage* small_img = cvCreateImage( cvSize( cvRound (img->width/scale), cvRound (img->height/scale)), 8, 1 ); cvCvtColor( img, gray, CV_BGR2GRAY ); cvResize( gray, small_img, CV_INTER_LINEAR ); cvEqualizeHist( small_img, small_img ); cvClearMemStorage( storage ); if( cascade ) { //函数cvHaarDetectObjects检测图像中的目标,由OpenCV提供。 CvSeq* faces = cvHaarDetectObjects( small_img, cascade, storage, 1.1, 2, 0, cvSize(30, 30) ); for( int i = 0; i < (faces ? faces->total : 0); i++ ) { CvRect* r = (CvRect*)cvGetSeqElem( faces, i ); CvPoint center; int radius; center.x = cvRound((r->x + r->width*0.5)*scale); center.y = cvRound((r->y + r->height*0.5)*scale); radius = cvRound((r->width + r->height)*0.25*scale); cvCircle( img, center, radius, colors[i%8], 3, 8, 0 ); } } cvShowImage( "result", img ); cvReleaseImage( &gray ); cvReleaseImage( &small_img ); }

资源文件列表:

人脸识别.zip 大约有101个文件
  1. 人脸识别/
  2. 人脸识别/.vs/
  3. 人脸识别/.vs/FaceDetection/
  4. 人脸识别/.vs/FaceDetection/v15/
  5. 人脸识别/.vs/FaceDetection/v15/.suo 27KB
  6. 人脸识别/.vs/FaceDetection/v15/Browse.VC.db 17.41MB
  7. 人脸识别/.vs/FaceDetection/v15/ipch/
  8. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/
  9. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/526500245e05009b/
  10. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/526500245e05009b/FACEDETECTION.ipch 28.56MB
  11. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/ba77cb26c45fd61c/
  12. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/ba77cb26c45fd61c/FACEDETECTION.ipch 29.19MB
  13. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/f2ecfffc6f81ba5c/
  14. 人脸识别/.vs/FaceDetection/v15/ipch/AutoPCH/f2ecfffc6f81ba5c/FACEDETECTION.ipch 62.06MB
  15. 人脸识别/Debug/
  16. 人脸识别/Debug/FaceDetection.exe 31KB
  17. 人脸识别/Debug/FaceDetection.ilk 361.05KB
  18. 人脸识别/Debug/FaceDetection.pdb 1.21MB
  19. 人脸识别/FaceDetection/
  20. 人脸识别/FaceDetection/Debug/
  21. 人脸识别/FaceDetection/Debug/CL.read.1.tlog 28.71KB
  22. 人脸识别/FaceDetection/Debug/CL.write.1.tlog 456B
  23. 人脸识别/FaceDetection/Debug/FaceDetection.Build.CppClean.log 2.33KB
  24. 人脸识别/FaceDetection/Debug/FaceDetection.exe.embed.manifest 406B
  25. 人脸识别/FaceDetection/Debug/FaceDetection.exe.embed.manifest.res 472B
  26. 人脸识别/FaceDetection/Debug/FaceDetection.exe.intermediate.manifest 381B
  27. 人脸识别/FaceDetection/Debug/FaceDetection.lastbuildstate 72B
  28. 人脸识别/FaceDetection/Debug/FaceDetection.log 121B
  29. 人脸识别/FaceDetection/Debug/FaceDetection.obj 107.76KB
  30. 人脸识别/FaceDetection/Debug/FaceDetection_manifest.rc 216B
  31. 人脸识别/FaceDetection/Debug/cl.command.1.tlog 742B
  32. 人脸识别/FaceDetection/Debug/link-cvtres.read.1.tlog 2B
  33. 人脸识别/FaceDetection/Debug/link-cvtres.write.1.tlog 2B
  34. 人脸识别/FaceDetection/Debug/link.8556-cvtres.read.1.tlog 2B
  35. 人脸识别/FaceDetection/Debug/link.8556-cvtres.write.1.tlog 2B
  36. 人脸识别/FaceDetection/Debug/link.8556.read.1.tlog 2B
  37. 人脸识别/FaceDetection/Debug/link.8556.write.1.tlog 2B
  38. 人脸识别/FaceDetection/Debug/link.command.1.tlog 2.47KB
  39. 人脸识别/FaceDetection/Debug/link.read.1.tlog 4.6KB
  40. 人脸识别/FaceDetection/Debug/link.write.1.tlog 960B
  41. 人脸识别/FaceDetection/Debug/mt.command.1.tlog 448B
  42. 人脸识别/FaceDetection/Debug/mt.read.1.tlog 208B
  43. 人脸识别/FaceDetection/Debug/mt.write.1.tlog 398B
  44. 人脸识别/FaceDetection/Debug/rc.command.1.tlog 644B
  45. 人脸识别/FaceDetection/Debug/rc.read.1.tlog 370B
  46. 人脸识别/FaceDetection/Debug/rc.write.1.tlog 378B
  47. 人脸识别/FaceDetection/Debug/vc100.idb 811KB
  48. 人脸识别/FaceDetection/Debug/vc100.pdb 916KB
  49. 人脸识别/FaceDetection/FaceDetection.cpp 2.41KB
  50. 人脸识别/FaceDetection/FaceDetection.vcxproj 9.08KB
  51. 人脸识别/FaceDetection/FaceDetection.vcxproj.filters 951B
  52. 人脸识别/FaceDetection/FaceDetection.vcxproj.user 143B
  53. 人脸识别/FaceDetection/Lena.jpg 89.66KB
  54. 人脸识别/FaceDetection/Release/
  55. 人脸识别/FaceDetection/Release/FaceDetection.log 1.08KB
  56. 人脸识别/FaceDetection/Release/FaceDetection.tlog/
  57. 人脸识别/FaceDetection/Release/FaceDetection.tlog/FaceDetection.lastbuildstate 298B
  58. 人脸识别/FaceDetection/Release/FaceDetection.tlog/cl.command.1.tlog 2B
  59. 人脸识别/FaceDetection/Release/FaceDetection.tlog/unsuccessfulbuild
  60. 人脸识别/FaceDetection/Release/vc120.pdb 36KB
  61. 人脸识别/FaceDetection/haarcascade_frontalface_alt.xml 898.31KB
  62. 人脸识别/FaceDetection/x64/
  63. 人脸识别/FaceDetection/x64/Debug/
  64. 人脸识别/FaceDetection/x64/Debug/FaceDetection.Build.CppClean.log 2.56KB
  65. 人脸识别/FaceDetection/x64/Debug/FaceDetection.log 2.99KB
  66. 人脸识别/FaceDetection/x64/Debug/FaceDetection.obj 194.16KB
  67. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/
  68. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/CL.read.1.tlog 17.82KB
  69. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/CL.write.1.tlog 976B
  70. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/FaceDetection.lastbuildstate 293B
  71. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/TZRES.DLL.bi
  72. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/cl.command.1.tlog 1.02KB
  73. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/link.command.1.tlog 1.7KB
  74. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/link.read.1.tlog 3.33KB
  75. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/link.write.1.tlog 944B
  76. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/metagen.read.1.tlog 2B
  77. 人脸识别/FaceDetection/x64/Debug/FaceDetection.tlog/metagen.write.1.tlog 2B
  78. 人脸识别/FaceDetection/x64/Debug/vc120.idb 411KB
  79. 人脸识别/FaceDetection/x64/Debug/vc120.pdb 652KB
  80. 人脸识别/FaceDetection/x64/Release/
  81. 人脸识别/FaceDetection/x64/Release/FaceDetection.log 269B
  82. 人脸识别/FaceDetection/x64/Release/FaceDetection.tlog/
  83. 人脸识别/FaceDetection/x64/Release/FaceDetection.tlog/CL.command.1.tlog 2B
  84. 人脸识别/FaceDetection/x64/Release/FaceDetection.tlog/FaceDetection.lastbuildstate 300B
  85. 人脸识别/FaceDetection/x64/Release/FaceDetection.tlog/unsuccessfulbuild
  86. 人脸识别/FaceDetection/x64/Release/vc141.pdb 36KB
  87. 人脸识别/FaceDetection.sdf 13.69MB
  88. 人脸识别/FaceDetection.sln 1.23KB
  89. 人脸识别/FaceDetection.suo 11.5KB
  90. 人脸识别/FaceDetection.v12.suo 23KB
  91. 人脸识别/Lena.jpg 89.66KB
  92. 人脸识别/Release/
  93. 人脸识别/Release/FaceDetection.iobj 47.75KB
  94. 人脸识别/Release/FaceDetection.ipdb 12.94KB
  95. 人脸识别/haarcascade_frontalface_alt.xml 898.31KB
  96. 人脸识别/x64/
  97. 人脸识别/x64/Debug/
  98. 人脸识别/x64/Debug/FaceDetection.exe 71.5KB
  99. 人脸识别/x64/Debug/FaceDetection.ilk 414.85KB
  100. 人脸识别/x64/Debug/FaceDetection.pdb 1.04MB
  101. 人脸识别/x64/Release/
0评论
提交 加载更多评论
其他资源 数字图像处理-正交变换(解密)
数字图像处理-正交变换(解密)
XJCG12864-12P2820插接.zip
XJCG12864-12P2820插接.zip
XJCG12864-12P2820插接.zip XJCG12864-12P2820插接.zip XJCG12864-12P2820插接.zip
医疗挂号管理系统 JAVA+Vue.js+SpringBoot+MySQL
基于Vue.js和SpringBoot的医疗挂号管理系统,分为用户前台和管理后台,可以给管理员、挂号人员、医生角色使用,包括挂号管理模块、患者管理模块、门诊管理模块、药品管理模块和系统基础模块,项目编号T206。 项目录屏:https://www.bilibili.com/video/BV15S421o7MT 启动教程:https://www.bilibili.com/video/BV1pW4y1P7GR 项目讲解视频:https://space.bilibili.com/417412814/channel/collectiondetail?sid=2242844
在线考试系统 JAVA+Vue.js+SpringBoot+MySQL
基于Vue.js和SpringBoot的在线考试系统,分为用户前台和管理后台,可以给管理员、老师、学生角色使用,包括课程管理模块、试卷管理模块、考试管理模块、学生管理模块、公告管理模块和系统基础模块,项目编号T207。 项目录屏:https://www.bilibili.com/video/BV15m42157PT 启动教程:https://www.bilibili.com/video/BV1pW4y1P7GR 项目讲解视频:https://space.bilibili.com/417412814/channel/collectiondetail?sid=2242844
在线考试系统 JAVA+Vue.js+SpringBoot+MySQL 在线考试系统 JAVA+Vue.js+SpringBoot+MySQL 在线考试系统 JAVA+Vue.js+SpringBoot+MySQL
逻辑回归预测船上人员幸存情加清洗评估加分析-项目实战6-分析人员幸存数据-ipynb格式-Python语法-用Jupyter打开
逻辑回归预测船上人员幸存情加清洗评估加分析-项目实战6-分析船上人员幸存数据-ipynb格式-Python语法-用Jupyter notebook打开 用来练习逻辑回归预测船上人员幸存情加清洗评估加分析,整个流程特别清晰,每个步骤均用Makedown编辑器进行编辑文字,每一步都给出了清晰的代码以及压缩包中给出了相应的数据集,可以按照步骤一步一步进行模仿,理解其中的思维逻辑,然后上手进行操作,在操作的过程中不断思考,等能力有了很大提升之后,就可以慢慢独立思考从事项目了 最后祝您变得更强
SR-MPLS BE带配置的Topo,无RR
SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Topo,无RR。SR-MPLS BE带配置的Top
ModStartCMS v8.7.0 文件前端直传,用户VIP功能升级
2024年07月22日ModStartCMS Laravel9发布v8.7.0版本,增加了以下21个特性: [新功能] 参数占位处理工具类 ParamUtil ,支持处理参数占位符 [新功能] Grid 表格操作支持底部操作区域(方法 footOperatePrepend) [新功能] Json 组件 API 数据配置显示优化 [新功能] Grid 批量操作弹窗支持自定义大小 ( data-dialog-width、data-dialog-width 属性) [新功能] 用户文件、图片上传支持前端直传云存储(需要安装模块支持) [新功能] 可完全自定义上传功能定制的特性 UploadScript Hook [新功能] WebUploader 内置 JS 组件升级 [新功能] VIP 优惠券功能集成,支持折扣券 [新功能] VIP 开通页面交互形式优化 [新功能] Grid 增改差页面支持标题自定义,使用 pageTitleAdd、pageTitleEdit、pageTitleShow 属性 [系统优化] 用户登录事件 MemberUserLoginedEvent
数字图像处理-图像编码(解密)
数字图像处理-图像编码(解密)