Nutrition / image_processing.py
dschandra's picture
Create image_processing.py
9de87c3 verified
raw
history blame contribute delete
209 Bytes
from PIL import Image
def preprocess_image(image):
"""
Preprocess the input image for food recognition.
"""
image = image.resize((224, 224)) # Resize for model compatibility
return image