Skip to content

Commit 74d3874

Browse files
authored
Update q1_database_statistics.py
title fix
1 parent 558ae8c commit 74d3874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

q1_database_statistics.py

+1-1
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[0],fontVariant[0])
43+
title = '{}-{}'.format(font[0],fontVariant)
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),

0 commit comments

Comments
 (0)