(path)
The general method for read bbox file by juding the file type
        Return:
            bbox:[y, x, height, width], shape: (height, width)
The general method for read bbox file by juding the file type
        Return:
            bbox:[y, x, height, width], shape: (height, width)
The general method for read bbox file by juding the file type Return : bbox : [ y x height width ] shape : ( height width )
def read_bbox(path):
        """
        The general method for read bbox file by juding the file type
        Return:
            bbox:[y, x, height, width], shape: (height, width)
        """
        if filename[-3:] == 'pkl' and 'Human' in filename:
            return InpaintDataset.read_bbox_ch(filename)
        elif filename[-3:] == 'pkl' and 'COCO' in filename:
            return InpaintDataset.read_bbox_pkl(filename)
        else:
            return InpaintDataset.read_bbox_xml(path)
def read_bbox ( path ) : if filename [ - 3 : ] == 'pkl' and 'Human' in filename : return InpaintDataset . read_bbox_ch ( filename ) elif filename [ - 3 : ] == 'pkl' and 'COCO' in filename : return InpaintDataset . read_bbox_pkl ( filename ) else : return InpaintDataset . read_bbox_xml ( path )