def update_trackers(frame,trackers,penalties=0,mark_new=True):
    """Update all the trackers using the new frame

    Args:
        frame ([type]): new frame
        trackers (List[TrackerObj]): List of trackers to update
        penalties (int, optional): Amount of penaltie. Defaults to 0.
        mark_new (bool, optional): Mark tracker as new or old,
        if it's old, later the bounding box will be reset to be more accurate
        using the detection box. Defaults to True.

    Returns:
        List[TrackerObj]: The updated list without destroyed trackers
    """
    for trk in trackers:
        trk.update(frame)
        trk.new=mark_new
        trk.fails+=penalties
    return [tr for tr in trackers if not tr.destroy()]