当前位置:网站首页>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
边栏推荐
- Armv8-a programming guide MMU (2)
- Windows下安装MongDB教程、Redis教程
- 天梯赛练习集题解LV1(all)
- [number theory] divisor
- Learn winpwn (2) -- GS protection from scratch
- 基于apache-jena的知识问答
- vs2019 第一个MFC应用程序
- The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
- Install mysql5.5 and mysql8.0 under windows at the same time
- Punctual atom stm32f103zet6 download serial port pin
猜你喜欢
Install mysql5.5 and mysql8.0 under windows at the same time
Solve the problem of installing failed building wheel for pilot
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
Introduction and use of automatic machine learning framework (flaml, H2O)
QT creator test
[recommended by bloggers] C # generate a good-looking QR code (with source code)
保姆级出题教程
Data dictionary in C #
Machine learning notes week02 convolutional neural network
C语言读取BMP文件
随机推荐
double转int精度丢失问题
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
Project practice - background employee information management (add, delete, modify, check, login and exit)
vs2019 桌面程序快速入门
安装numpy问题总结
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
Principes JDBC
Why can't STM32 download the program
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
Armv8-a programming guide MMU (2)
02 staff information management after the actual project
Julia 1.6 1.7 common problem solving
【博主推荐】SSM框架的后台管理系统(附源码)
SSM整合笔记通俗易懂版
Remember a company interview question: merge ordered arrays
C语言读取BMP文件
QT creator create button
人脸识别 face_recognition
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
MySQL的一些随笔记录