First time here? Check out the FAQ!
answered 2020-03-26 03:56:03 -0600
since it returrns a vector<Point>, you could try:
vector<Point>
vector<Point> pts; Rect r = getBoundingRect(pts); Point center(r.x+r.width/2, r.y+r.height/2);