Retinaface-caffe
Retinaface-caffe copied to clipboard
error C2065: “anchor”: undeclared identifier
@cholihao void AnchorGenerator::landmark_pred(const CRect2f anchor, const std::vectorcv::Point2f& delta, std::vectorcv::Point2f& pts) { float w = anchor[2] - anchor[0] + 1; float h = anchor[3] - anchor[1] + 1; float x_ctr = anchor[0] + 0.5 * (w - 1); float y_ctr = anchor[1] + 0.5 * (h - 1); pts.resize(delta.size()); for (int i = 0; i < delta.size(); ++i) { pts[i].x = (delta[i].x*w + x_ctr)ratiow; pts[i].y = (delta[i].yh + y_ctr)*ratioh; } }