当前位置:网站首页>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
边栏推荐
猜你喜欢
vs2019 桌面程序快速入门
Case analysis of data inconsistency caused by Pt OSC table change
Install mongdb tutorial and redis tutorial under Windows
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
[recommended by bloggers] C WinForm regularly sends email (with source code)
Machine learning -- census data analysis
Swagger、Yapi接口管理服务_SE
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
CSDN markdown editor
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP
随机推荐
图片上色项目 —— Deoldify
01 project demand analysis (ordering system)
csdn-Markdown编辑器
What does usart1 mean
保姆级出题教程
Cookie setting three-day secret free login (run tutorial)
Copie maître - esclave MySQL, séparation lecture - écriture
How to build a new project for keil5mdk (with super detailed drawings)
[Thesis Writing] how to write function description of jsp online examination system
UDS learning notes on fault codes (0x19 and 0x14 services)
AcWing 1298.曹冲养猪 题解
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
自动机器学习框架介绍与使用(flaml、h2o)
[蓝桥杯2021初赛] 砝码称重
Leetcode 461 Hamming distance
Knowledge Q & A based on Apache Jena
Windows下安装MongDB教程、Redis教程
数据库高级学习笔记--SQL语句
Ansible practical Series II_ Getting started with Playbook
FRP intranet penetration