from PIL import Image import numpy as np import matplotlib.pyplot as plt #load image and convert to numpy array img_file = Image.open("lab_ml.jpg").convert(\'