def load_image(filename):
"""Reads an image from file. Image is being converted to grayscale and resized."""
image = cv2.imread(filename, cv2.IMREAD_GRAYSCALE)
if image is None:
raise ImageLoaderError(filename)
return convert_image(image)
评论列表
文章目录