def filter_bad_boxes(boxes_coor):
    """ Filter the boxes with wrong coordinates """
    filted_boxes = list()
    for box_coor in boxes_coor:
        [xmin, ymin, xmax, ymax] = box_coor
        if xmin < xmax and ymin < ymax:
            filted_boxes.append(box_coor)

    return filted_boxes