SmartPlate / src /preprocessing.py
Aishrica's picture
initial commit
50ba6d4
Raw
History Blame Contribute Delete
203 Bytes
from pathlib import Path
from PIL import Image
def load_rgb_image(path: str | Path) -> Image.Image:
"""Load an image from disk and convert it to RGB."""
return Image.open(path).convert("RGB")