def convert_to_grayscale(imlist):
    
    for imname in imlist:
        im = Image.open(imname).convert("L")
        im.save(imname)
Convert a set of images to grayscale.
dataset/ETHPy150Open jesolem/PCV/PCV/tools/imtools.py/convert_to_grayscale