you can sort the vector<vector<Point>> contours by the x-coord of the boundingRect
// from left to right