سلام .من خودم همچین تجربه ای داشتم و روش نرمال سازیم بر اساس boundingRect خود انکرها بوده که کدش را براتون قرار میدم شاید بدردتون بخوره:
void LandmarkData::normalize()
{
landmak_region_ = cv::boundingRect(anchors_);
auto p1 = landmak_region_.tl();
auto p2 = landmak_region_.br();
anchors_norm_.clear();
anchors_norm_.reserve(anchors_.size());
for (int i = 0; i < anchors_.size(); i++) {
cv::Point2f norm_point;
norm_point.x = (float)(anchors_[i].x - p1.x) / landmak_region_.width;
norm_point.y = (float)(anchors_[i].y - p1.y) / landmak_region_.height;
anchors_norm_.push_back(norm_point);
}
}