Python階調変換と画像保存
from PIL import Image
...
##
newImg = img.convert('L')
##
newImg.save(os.path.join(path, dirpath_picture.split('\\')[3]))
...
from PIL import Image
...
##
newImg = img.convert('L')
##
newImg.save(os.path.join(path, dirpath_picture.split('\\')[3]))
...