def score_filter(predictions, min_score):
    """Remove prediction bounding boxes with probability under a threshold

    Parameters
    ----------
    predictions : dict
        all predictions
    min_score : int
        threshold score

    Returns
    -------
    dict
        filtered predictions
    """

    new_pred = {}
    new_pred['type'] = predictions['type']
    new_pred['features'] = []
    for feature in predictions['features']:
        if feature['properties']['score'] >= min_score:
            new_pred['features'].append(feature)
    
    return new_pred