به خاطر اینه که tl,br احتمالا کپی بر می گردونن
می تونی یا با سازنده Rect رو بسازی
Point pTopLeft(100,100);
Point pBottomRight(200,300);
Rect rect(pTopLeft,pBottomRight);
یا x ,y,width,height رو برا اساس 2 تا point بهش بدی
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
int main( )
{
Point pTopLeft(100,100);
Point pBottomRight(200,300);
Rect rect;
Mat image(500, 500, CV_8UC3, Scalar(0));
rect.x=pTopLeft.x;
rect.y=pTopLeft.y;
rect.width=pBottomRight.x-pTopLeft.x;
rect.height=pBottomRight.y-pTopLeft.y;
rectangle(image,rect,Scalar(255,255,255));
imshow("TEST",image);
waitKey(0);
}