Ubuntu下Python之dlib人脸检测
来源:互联网 发布:手机淘宝2015旧版本5.5 编辑:程序博客网 时间:2024/06/05 22:09
import sys import os import dlib import globfrom skimage import io detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") win = dlib.image_window() img = io.imread("test.jpg") win.clear_overlay() win.set_image(img) dets = detector(img, 1) print("Number of faces detected: {}".format(len(dets))) for k, d in enumerate(dets): print("Detection {}: Left: {} Top: {} Right: {} Bottom: {}".format( k, d.left(), d.top(), d.right(), d.bottom())) shape = predictor(img, d) print("Part 0: {}, Part 1: {} ...".format(shape.part(0), shape.part(1))) win.add_overlay(shape) win.add_overlay(dets) dlib.hit_enter_to_continue()
结果:
阅读全文
0 0
- Ubuntu下Python之dlib人脸检测
- Linux下python 与 C++ dlib人脸检测
- dlib人脸检测
- 基础知识(十三)dlib python人脸检测 特征点定位
- 利用opencv,dlib,python编写人脸检测程序
- python dlib学习(一):人脸检测
- python dlib学习(三):调用cnn人脸检测
- dlib python人脸检测 特征点定位
- ubuntu 下python第三库 dlib 安装
- Ubuntu环境下python安装dlib模块
- Dlib人脸检测+对齐
- Tensorflow12-Dlib人脸检测
- python下通过dlib和opencv实现人脸对齐(包括关键点检测和仿射变换)
- OpenCV实践之路——用dlib库进行人脸检测与人脸标记(Python)
- OpenCV实践之路——用dlib库进行人脸检测与人脸标记(Python)
- dlib 05 dlib自带demo 人脸检测
- Ubuntu下python之opencv猫脸检测
- ubuntu下安装dlib
- CentOS7下卸载OpenJDK并安装完整JDK
- #ifndef 标识符 #define 标识符 ……#endif通俗说明
- 一、Android的事件分发、拦截和响应
- Kotlin编程之一
- Children of the Candy Corn
- Ubuntu下Python之dlib人脸检测
- Linux系统逻辑卷管理
- 17 多校 4
- <8/4>集训日记
- 剑指offer:包含min函数的栈
- hdu4548 美素数(C语言)
- 架构师入门笔记三 初识Queue队列
- 最短路径—Dijkstra算法和Floyd算法(理解)
- <a>标签的href和onclick属性