当前位置:网站首页>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
边栏推荐
- QT creator custom build process
- Install mongdb tutorial and redis tutorial under Windows
- Ansible practical Series III_ Task common commands
- 天梯赛练习集题解LV1(all)
- Neo4j installation tutorial
- Data dictionary in C #
- 机器学习--人口普查数据分析
- Asp access Shaoxing tourism graduation design website
- Install mysql5.5 and mysql8.0 under windows at the same time
- AcWing 1294. Cherry Blossom explanation
猜你喜欢
[number theory] divisor
UDS learning notes on fault codes (0x19 and 0x14 services)
Request object and response object analysis
02 staff information management after the actual project
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
自动机器学习框架介绍与使用(flaml、h2o)
QT creator design user interface
Install mongdb tutorial and redis tutorial under Windows
Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
QT creator specifies dependencies
随机推荐
【博主推荐】SSM框架的后台管理系统(附源码)
天梯赛练习集题解LV1(all)
Machine learning notes week02 convolutional neural network
Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
Classes in C #
QT creator runs the Valgrind tool on external applications
Why can't I use the @test annotation after introducing JUnit
Ansible practical Series III_ Task common commands
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
TCP/IP协议(UDP)
Software testing - interview question sharing
Ansible实战系列一 _ 入门
Learn winpwn (2) -- GS protection from scratch
Solution: log4j:warn please initialize the log4j system properly
double转int精度丢失问题
Swagger、Yapi接口管理服务_SE
Did you forget to register or load this tag
LeetCode #461 汉明距离
QT creator custom build process
L2-001 紧急救援 (25 分)