当前位置:网站首页>MTCNN人脸检测
MTCNN人脸检测
2022-07-06 09:14:00 【imxlw00】
MTCNN可实现两个任务——人脸检测与人脸关键点检测。
MTCNN已经集成到了python的库中。
安装
注意:安装前需要确认以下依赖:
python >= 3.4
opencv >= 4.1
Keras>=2.0.0
pip install mtcnn

人脸检测
from mtcnn import MTCNN
import cv2
img=cv2.imread("../datas/face/ldh2.jpg")
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
detector = MTCNN()
face =detector.detect_faces(img)
print(face)
[
{‘box’: [162, 72, 226, 281],
‘confidence’: 0.9999822378158569,
‘keypoints’: {‘left_eye’: (236, 190), ‘right_eye’: (335, 179), ‘nose’: (296, 248), ‘mouth_left’: (254, 291), ‘mouth_right’: (331, 282)}}
]
效果图

边栏推荐
- L2-006 树的遍历 (25 分)
- Install mysql5.5 and mysql8.0 under windows at the same time
- QT creator specifies dependencies
- Some notes of MySQL
- Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
- Redis的基础使用
- Cookie setting three-day secret free login (run tutorial)
- [蓝桥杯2021初赛] 砝码称重
- Punctual atom stm32f103zet6 download serial port pin
- 项目实战-后台员工信息管理(增删改查登录与退出)
猜你喜欢

Copie maître - esclave MySQL, séparation lecture - écriture

安装numpy问题总结

Request object and response object analysis

打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站

Asp access Shaoxing tourism graduation design website

Swagger, Yapi interface management service_ SE

Machine learning -- census data analysis

Classes in C #

Leetcode 461 Hamming distance

Case analysis of data inconsistency caused by Pt OSC table change
随机推荐
La table d'exportation Navicat génère un fichier PDM
一键提取pdf中的表格
引入了junit为什么还是用不了@Test注解
Install mongdb tutorial and redis tutorial under Windows
01项目需求分析 (点餐系统)
Project practice - background employee information management (add, delete, modify, check, login and exit)
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
02 staff information management after the actual project
误删Path变量解决
【博主推荐】asp.net WebService 后台数据API JSON(附源码)
Ansible实战系列三 _ task常用命令
Ubuntu 20.04 安装 MySQL
QT creator custom build process
Ansible practical Series II_ Getting started with Playbook
【博主推荐】C# Winform定时发送邮箱(附源码)
Attention apply personal understanding to images
Leetcode 461 Hamming distance
LeetCode #461 汉明距离
[recommended by bloggers] C WinForm regularly sends email (with source code)
[蓝桥杯2017初赛]方格分割