资源算法face_alignment

face_alignment

2020-03-26 | |  73 |   0 |   0

face_alignment

Simple face alignment library by using face_recognition and opencv

图片.png

Environment

  1. MacOS

  2. Ubuntu 16.04

Prerequisite

  1. face_recognition

  2. opencv

if there's any problem in environment setting, please check my another repository

https://github.com/cftang0827/python-computer-vision-env_install

Workflow

  1. Use face_recognition(dlib) to find 68 face landmark points.

  2. Find the middle point of left eye and right eye

  3. Use opencv's warpaffine to correct original image

img2_r = io.imread('test2.jpg')
t1 = timeit.default_timer()
img2_a = api.face_alignment(img2_r, scale = 1.05)
print('Time elapsed: {}'.format(timeit.default_timer() - t1))

Origin image

图片.png

After alignment image

图片.png

Time elapsed: 0.200452


上一篇:FHR_alignment

下一篇:Face-Alignment-using-Dlib-OpenCV

用户评价
全部评价

热门资源

  • TensorFlow-Course

    This repository aims to provide simple and read...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • mxnet_VanillaCNN

    This is a mxnet implementation of the Vanilla C...

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • Klukshu-Sockeye-...

    KLUKSHU SOCKEYE PROJECTS 2016 This repositor...