Face recognition and image normalization
2 ビュー (過去 30 日間)
古いコメントを表示
How can I normalize image to align the eyes with a horizontal line.
EyeDetect = vision.CascadeObjectDetector('EyePairBig');
I = imread('1.jpg');
BB=step(EyeDetect,I);
As I understand I can rotate image by imrotate , but I need to know angle of the rotation.
0 件のコメント
採用された回答
Dima Lisin
2014 年 11 月 6 日
If (x1,y1) is the center of the first eye, and (x2, y2) is the center of the second eye, then (y2 - y1) / (x2 - x1) is the tangent of the angle between the line connecting the two centers and the horizontal. You can get the angle using atan2(y2-y1, x2-x1).
2 件のコメント
chinnurocks
2016 年 7 月 8 日
How to get centre points of the eyes... automatically... I mean without using the data cursor manually ?
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!