Skip to content

Commit 558ae8c

Browse files
authored
Update q1_database_statistics.py
Make plot names Windows legal
1 parent e914d92 commit 558ae8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

q1_database_statistics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ds = ocr_utils.read_data(input_filters_dict=fd, output_feature_list=['m_label','image'] , dtype=np.int32)
4141
y,X = ds.train.features
4242
X2D = np.reshape(X, (X.shape[0], ds.train.num_rows, ds.train.num_columns ))
43-
title = '{}: {}'.format(font,fontVariant)
43+
title = '{}-{}'.format(font[0],fontVariant[0])
4444
ocr_utils.show_examples(X2D, y, title=title)
4545

4646
print ('unique fonts={}, fontVariants={}, labels = {}, strengths = {}, italics = {}, orientations = {}'.format(len(unique_fonts), len(unique_fontVariants),
@@ -49,4 +49,4 @@
4949

5050

5151
print ('\n########################### No Errors ####################################')
52-
52+

0 commit comments

Comments
 (0)