略
1、眼部关键点
左侧:36,37,38,39,40,41
右侧:42,43,44,45,46,47
2、计算roi区域的w,h,center
目的调整mask的比列。
FaceRegion left_es, right_es;
left_es.w = landmarks.at(39).x - landmarks.at(36).x;
left_es.h = std::max(landmarks[40].y, landmarks[41].y) - std::min(landmarks[37].y, landmarks[38].y) + 3;
left_es.center = cv::Point2i((landmarks[36].x + landmarks[39].x) / 2 + 1, (landmarks[37].y + landmarks[40].y) / 2 - 2);
right_es.w = landmarks[45].x - landmarks[42].x;
right_es.h = std::max(landmarks[46].y, landmarks[47].y) - std::min(landmarks[43].y, landmarks[44].y) + 3;
right_es.center = cv::Point2i((landmarks[42].x + landmarks[45].x) / 2, (landmarks[44].y