Last active
November 18, 2019 15:32
-
-
Save carzacc/7e0f8be2541c701515a594154e0e6d44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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