资源算法face_alignment

face_alignment

2020-03-26 | |  56 |   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

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

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

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...