Hi@tpys , you align the face image into 112x96, however,I need to align it into 112x112(insight face, which is similar with sphereface), so I simply changed the ReferenceWidth and ReferenceHeight into 112/112, but it seems that the aligned face is not correct(cut so much area), so it is not as accurate as InsightFace
, maybe the problem is the ReferenceIDs, could you please tell me how to get the reference Points for 112x112 image? thank you.
cv::Mat align_face(const cv::Mat& src, const FaceLandmark& landmark, int width, int height) {
const int N = landmark.points_.size();
vector<cv::Point2f> detect_points;
if (N != 5) {
detect_points = {
landmark.points_[ReferenceID[0]],
landmark.points_[ReferenceID[1]],
landmark.points_[ReferenceID[2]],
landmark.points_[ReferenceID[3]],
landmark.points_[ReferenceID[4]],
};
}
else {
detect_points = landmark.points_;
}
const int ReferenceWidth = 112;
const int ReferenceHeight = 112;
Hi@tpys , you align the face image into 112x96, however,I need to align it into 112x112(insight face, which is similar with sphereface), so I simply changed the ReferenceWidth and ReferenceHeight into 112/112, but it seems that the aligned face is not correct(cut so much area), so it is not as accurate as InsightFace , maybe the problem is the ReferenceIDs, could you please tell me how to get the reference Points for 112x112 image? thank you.
cv::Mat align_face(const cv::Mat& src, const FaceLandmark& landmark, int width, int height) {
**vector reference_points = {
}