资源算法face_alignment

face_alignment

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

用户评价
全部评价

热门资源

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • ETD_cataloguing_a...

    ETD catalouging project using allennlp

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • honk-honk-motherf...

    honk-honk-motherfucker