9f26583
1
2
3
4
5
from PIL import Image def open_grayscale(image_path: str): return Image.open(image_path).convert("L")