当前位置:网站首页>Mtcnn face detection
Mtcnn face detection
2022-07-06 11:24:00 【imxlw00】
MTCNN Two tasks can be achieved —— Face detection and face key point detection .
MTCNN It's integrated into python Library .
install
Be careful : The following dependencies need to be confirmed before installation :
python >= 3.4
opencv >= 4.1
Keras>=2.0.0
pip install mtcnn

Face detection
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)}}
]
design sketch

边栏推荐
- Ansible practical Series III_ Task common commands
- Request object and response object analysis
- Install mysql5.5 and mysql8.0 under windows at the same time
- The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
- Case analysis of data inconsistency caused by Pt OSC table change
- MySQL other hosts cannot connect to the local database
- ES6 Promise 对象
- Solution: log4j:warn please initialize the log4j system properly
- Base de données Advanced Learning Notes - - SQL statements
- [蓝桥杯2017初赛]包子凑数
猜你喜欢

Machine learning notes week02 convolutional neural network

One click extraction of tables in PDF

Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.

Pytorch基础

自动机器学习框架介绍与使用(flaml、h2o)

Rhcsa certification exam exercise (configured on the first host)

Case analysis of data inconsistency caused by Pt OSC table change

Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘

PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
![[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP](/img/7d/8cbbd2f328a10808319458a96fa5ec.jpg)
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP
随机推荐
Django running error: error loading mysqldb module solution
天梯赛练习集题解LV1(all)
[蓝桥杯2021初赛] 砝码称重
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
Kept VRRP script, preemptive delay, VIP unicast details
机器学习--人口普查数据分析
How to build a new project for keil5mdk (with super detailed drawings)
MySQL主从复制、读写分离
AcWing 1294.樱花 题解
csdn-Markdown编辑器
牛客Novice月赛40
Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
Learn winpwn (3) -- sEH from scratch
02 staff information management after the actual project
Why can't STM32 download the program
Introduction to the easy copy module
ImportError: libmysqlclient. so. 20: Cannot open shared object file: no such file or directory solution
Some notes of MySQL
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path