c++ - Align profile face image with its frontal face image -


i have profile face:

enter image description here

and frontal face image:

enter image description here

output: aligned profile face reference frontal face.

idea: need know 3 common points can take,which visible on both faces , use affinetransform , display aligned profile face

      or other **simple method** of doing 

development envi.:c++ , opencv 2.4.2

what tried:

  1. haarcascade feature detection(common detection point in both images=eye) ; wont detect ear in frontal face
  2. opencv: shift/align face image relative reference image (image registration) (i error message)

as discussed here @bytefish, finding accurate position of eyes in given image far trivial. haar-cascades finding eyes in opencv produce many false positive useful, approach won't robust image rotation.

you'll need robust head pose estimation aligning face images. here 2 robust ones (with code available):


for example, using method described in second paper, more robust features shown in following images. , these robust features will, in turn, ensure generate more robust face alignment performance.

enter image description here

enter image description here


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

Android layout hidden on keyboard show -

Parse xml element into list in Python -