Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

aligment plate or RotatedRect and draw

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 . image description

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.

aligment plate or RotatedRect and draw

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 . image description

int cmin-100;
int cmax = 1000;
 vector<vector<point> vector<vector<Point> >::iterator itc= contours.begin();
 vector<rotatedrect> rects;

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.