I get a images set, and the images are like this.
How can I remove the beneath white part of the image using python, which doesn't contain any useful content?
I read the image to numpy array in python.
My code is like this:
data_dir = "/Users/leon/Projects/inpainting/data/"
images = []
files = glob.glob (data_dir + "*.jpg")
for file in files:
image = cv2.imread(file, 0)
images.append(image)