def remove_small_images()

in seed/util/preprocess.py [0:0]


def remove_small_images(image_path, image_dim_thres=160000):
    images_ = glob(os.path.join(image_path, "*"))
    images = []
    for image in images_:
        img = cv2.imread(image)
        h, w, _ = img.shape
        if h*w < 160000: # 
            os.remove(image)
        else:
            images.append(image)
    return images