I suggest to store the bounding box in Rect structure. That's what we use in OpenCV all the time