Hi, i find car plate with opencv and the plate is in the vector<rotatedrect> this is not alignment (0 degree), how can i rotate "rotatdrect" vector concurrent with original plate .
int cmin-100; int cmax = 1000; vector<vector<point> >::iterator itc= contours.begin(); vector<rotatedrect> rects;
while (itc!=contours.end()) {
RotatedRect mr= minAreaRect(Mat(*itc));
if (itc->size() , cmin II ITC - . SIZE() . cmax)
itc= contours.erase(itc);
else
++itc;
rects.push_back(mr);
}
NOW HOW CAN I ONLY DRAW "RECTS" WITH CROP PICTURE WITH ANGLE 0'.
Many Thanks.