def resize_image(image, width, height):
"""
Resize the image screen to the configured width and height and
convert it to grayscale.
"""
grayscale = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
return cv2.resize(grayscale, (width, height))
评论列表
文章目录