当前位置:网站首页>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)}}
]
效果图
边栏推荐
- 【博主推荐】C#MVC列表实现增删改查导入导出曲线功能(附源码)
- Antlr4 uses keywords as identifiers
- TCP/IP协议(UDP)
- error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_s instead
- Copie maître - esclave MySQL, séparation lecture - écriture
- 02 staff information management after the actual project
- [AGC009D]Uninity
- [free setup] asp Net online course selection system design and Implementation (source code +lunwen)
- Django running error: error loading mysqldb module solution
- 天梯赛练习集题解LV1(all)
猜你喜欢
Install mongdb tutorial and redis tutorial under Windows
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
一键提取pdf中的表格
[recommended by bloggers] C # generate a good-looking QR code (with source code)
Classes in C #
Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.
学习问题1:127.0.0.1拒绝了我们的访问
How to configure flymcu (STM32 serial port download software) is shown in super detail
自动机器学习框架介绍与使用(flaml、h2o)
Windows cannot start the MySQL service (located on the local computer) error 1067 the process terminated unexpectedly
随机推荐
Ansible实战系列三 _ task常用命令
Remember the interview algorithm of a company: find the number of times a number appears in an ordered array
MySQL master-slave replication, read-write separation
Did you forget to register or load this tag 报错解决方法
误删Path变量解决
AI benchmark V5 ranking
The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
安全测试涉及的测试对象
MySQL主從複制、讀寫分離
自动机器学习框架介绍与使用(flaml、h2o)
Asp access Shaoxing tourism graduation design website
[recommended by bloggers] C # generate a good-looking QR code (with source code)
AcWing 242. A simple integer problem (tree array + difference)
打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
天梯赛练习集题解LV1(all)
UDS learning notes on fault codes (0x19 and 0x14 services)
Install mongdb tutorial and redis tutorial under Windows
[recommended by bloggers] C WinForm regularly sends email (with source code)
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