知道四个角点,画四条线连起来就是矩形框。
或者根据两个顶点画矩形。
void rectangle(Mat& img, Point pt1,Point pt2,const Scalar& color, int thickness=1, int lineType=8, int shift=0)