File size: 209 Bytes
9de87c3
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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