Skip to content

Commit aa52cfd

Browse files
committed
windows plot file names
remove illegal windows character in plotting file name
1 parent e914d92 commit aa52cfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

q1_database_statistics.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
'''
22
Created on Jul 25, 2016
3-
4-
5-
63
@author: richard
74
'''
85
import ocr_utils
@@ -40,7 +37,7 @@
4037
ds = ocr_utils.read_data(input_filters_dict=fd, output_feature_list=['m_label','image'] , dtype=np.int32)
4138
y,X = ds.train.features
4239
X2D = np.reshape(X, (X.shape[0], ds.train.num_rows, ds.train.num_columns ))
43-
title = '{}: {}'.format(font,fontVariant)
40+
title = '{}-{}'.format(font[0],fontVariant)
4441
ocr_utils.show_examples(X2D, y, title=title)
4542

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

5047

5148
print ('\n########################### No Errors ####################################')
52-

0 commit comments

Comments
 (0)