import pickle


def load_roi(filename):
    """
    Load a roi selection from a pickle file
    :param filename:
    :return: roi as a list (a,b,w,h)
    """
    with open(filename, "rb") as f:
        roi = pickle.load(f)

    return roi