基于Opencv-python人脸口罩检测

上传者: 43717870 | 上传时间: 2022-12-26 19:31:33 | 文件大小: 1.68MB | 文件类型: ZIP
首先进行图片的读取,使用opencv的haar鼻子特征分类器,如果检测到鼻子,则证明没有戴口罩。如果没有检测到鼻子,接着使用opencv的haar眼睛特征分类器,如果没有检测到眼睛,则结束。如果检测到眼睛,则把RGB颜色空间转为HSV颜色空间。进行口罩区域的检测。口罩区域检测流程是首先把距离坐标原点的较近的横坐标作为口罩区域开始横坐标,离坐标原点较远的横坐标作为口罩区域结束横坐标。离坐标原点较远的纵坐标作为口罩区域开始纵坐标,离坐标原点较远的纵坐标与眼睛高度2倍的和作为口罩区域结束纵坐标。

文件下载

资源详情

[{"title":"( 30 个子文件 1.68MB ) 基于Opencv-python人脸口罩检测","children":[{"title":"V_hsv","children":[{"title":".idea","children":[{"title":"V_hsv.iml <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 4.59KB </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 190B </span>","children":null,"spread":false}],"spread":true},{"title":"mask_check.py <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false},{"title":"haarcascades","children":[{"title":"haarcascade_mcs_mouth.xml <span style='color:#111;'> 489.93KB </span>","children":null,"spread":false},{"title":"haarcascade_profileface.xml <span style='color:#111;'> 809.10KB </span>","children":null,"spread":false},{"title":"haarcascade_smile.xml <span style='color:#111;'> 184.09KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalface_alt.xml <span style='color:#111;'> 660.85KB </span>","children":null,"spread":false},{"title":"haarcascade_russian_plate_number.xml <span style='color:#111;'> 73.71KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalcatface.xml <span style='color:#111;'> 401.75KB </span>","children":null,"spread":false},{"title":"haarcascade_lefteye_2splits.xml <span style='color:#111;'> 190.79KB </span>","children":null,"spread":false},{"title":"haarcascade_eye.xml <span style='color:#111;'> 333.40KB </span>","children":null,"spread":false},{"title":"haarcascade_mcs_nose.xml <span style='color:#111;'> 1.05MB </span>","children":null,"spread":false},{"title":"haarcascade_lowerbody.xml <span style='color:#111;'> 386.06KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalcatface_extended.xml <span style='color:#111;'> 373.94KB </span>","children":null,"spread":false},{"title":"haarcascade_upperbody.xml <span style='color:#111;'> 767.40KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalface_default.xml <span style='color:#111;'> 908.33KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalface_alt_tree.xml <span style='color:#111;'> 2.56MB </span>","children":null,"spread":false},{"title":"haarcascade_righteye_2splits.xml <span style='color:#111;'> 191.57KB </span>","children":null,"spread":false},{"title":"haarcascade_frontalface_alt2.xml <span style='color:#111;'> 527.95KB </span>","children":null,"spread":false},{"title":"haarcascade_eye_tree_eyeglasses.xml <span style='color:#111;'> 587.56KB </span>","children":null,"spread":false},{"title":"haarcascade_licence_plate_rus_16stages.xml <span style='color:#111;'> 46.66KB </span>","children":null,"spread":false},{"title":"haarcascade_fullbody.xml <span style='color:#111;'> 465.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"images","children":[{"title":"backgound.png <span style='color:#111;'> 53.71KB </span>","children":null,"spread":false},{"title":"226.jpg <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"train_301.jpg <span style='color:#111;'> 71.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明