Skip to content

Instantly share code, notes, and snippets.

@carzacc
Last active November 18, 2019 15:32
Show Gist options
  • Save carzacc/7e0f8be2541c701515a594154e0e6d44 to your computer and use it in GitHub Desktop.
Save carzacc/7e0f8be2541c701515a594154e0e6d44 to your computer and use it in GitHub Desktop.
from imageprocessor import ImageProcessor
def process_dir(args):
"""
Process the images: copy them so that
you can recognize what directory
they came from both from their name
and from the text annotated over them.
"""
image_processor = ImageProcessor(args.dir, args.save_dir)
image_processor.process_dir()
def copy(args):
"""
Only copy the images and rename them, without
any image editing.
"""
image_processor = ImageProcessor(args.dir, args.save_dir, process=False)
image_processor.process_dir()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment