I have cropped face which is in mat. And for the application i want it to store in rect form.
variables are -->
std::vector<rect> rects; //vector of rectangle;
Mat face; //obtained face.
and i want something like
rects[0]=face;
thanks in advance.