c++ - Align profile face image with its frontal face image -
i have profile face:
and frontal face image:
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:
- haarcascade feature detection(common detection point in both images=eye) ; wont detect ear in frontal face
- 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):
gary b. huang, vidit jain, , erik learned-miller. unsupervised joint alignment of complex images. international conference on computer vision (iccv), 2007. (project page), (pdf online available), (source code)
x. zhu, d. ramanan. face detection, pose estimation , landmark localization in wild computer vision , pattern recognition (cvpr) providence, rhode island, june 2012. (project page), (pdf online available), (source code)
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.
Comments
Post a Comment