This script uses the Argparse parser module, to run it successfully, you should pass an input path for a folder containing color images, and a path of an existing empty folder for the converted grayscale images.

  • for instance: python gray_images.py --input 'images/' --output 'converted-images/'