in sagemaker/src/htr_dataset.py [0:0]
def _convert_bb_list_to_max_bb(self, bb_list):
'''
Helper function to convert a list of bbs into one bb that encompasses all
the bbs.
BBs are in the form (x1, y1, x2, y2)
'''
max_x = np.max([a[2] for a in bb_list])
min_x = np.min([a[0] for a in bb_list])
max_y = np.max([a[3] for a in bb_list])
min_y = np.min([a[1] for a in bb_list])
return (min_x, min_y, max_x, max_y)