In [1]:
from IPython.display import Image
import sys
sys.path.insert(0, './scripts')
import list_files
import draw_text
import resize_images
test_data_path = "./data"

In [2]:
list_file_count = list_files.list_files(test_data_path)
print("Have listed %d files." % list_file_count)


Lenna.png
Have listed 1 files.

In [3]:
draw_file_count = draw_text.draw_text(test_data_path, './draw_output', font_size=25, color_r=255, color_g=255, color_b=0)
print("Have drawn texts over %d image(s)." % draw_file_count)


Have drawn texts over 1 image(s).

In [4]:
Image(filename='./draw_output/Lenna.png', width=300)


Out[4]:

In [5]:
resize_file_count = resize_images.resize_images(test_data_path, './resize_output')
print("Have resized %d images." % resize_file_count)


Have resized 1 images.