Update app_pages/ocr_comparator.py
Browse files
app_pages/ocr_comparator.py
CHANGED
@@ -874,20 +874,16 @@ def app():
|
|
874 |
column_width = 400
|
875 |
for ind_lig in range(0, reco_lines+1, 2):
|
876 |
cols = st.columns(2)
|
877 |
-
# test
|
878 |
-
cols[0].markdown('col 0')
|
879 |
-
cols[1].markdown('col 1')
|
880 |
-
#
|
881 |
for ind_col in range(2):
|
882 |
ind = ind_lig + ind_col
|
883 |
if ind < len(in_reader_type_list):
|
884 |
if in_reader_type_list[ind] == 'Tesseract':
|
885 |
-
column_title = '<p style="font-size: 20px;color:rgb(
|
886 |
">Recognition with ' + in_reader_type_list[ind] + \
|
887 |
'<sp style="font-size: 17px"> (with its own detector) \
|
888 |
</sp></p>'
|
889 |
else:
|
890 |
-
column_title = '<p style="font-size: 20px;color:rgb(
|
891 |
">Recognition with ' + \
|
892 |
in_reader_type_list[ind]+ '</p>'
|
893 |
cols[ind_col].markdown(column_title, unsafe_allow_html=True)
|
@@ -907,7 +903,7 @@ def app():
|
|
907 |
with show_detect.container():
|
908 |
columns_size = [1 for x in reader_type_list]
|
909 |
column_width = [300 for x in reader_type_list]
|
910 |
-
columns_color = ["rgb(
|
911 |
columns_size[reader_type_dict[st.session_state.detect_reader]] = 2
|
912 |
column_width[reader_type_dict[st.session_state.detect_reader]] = 400
|
913 |
columns_color[reader_type_dict[st.session_state.detect_reader]] = "rgb(228,26,28)"
|
|
|
874 |
column_width = 400
|
875 |
for ind_lig in range(0, reco_lines+1, 2):
|
876 |
cols = st.columns(2)
|
|
|
|
|
|
|
|
|
877 |
for ind_col in range(2):
|
878 |
ind = ind_lig + ind_col
|
879 |
if ind < len(in_reader_type_list):
|
880 |
if in_reader_type_list[ind] == 'Tesseract':
|
881 |
+
column_title = '<p style="font-size: 20px;color:rgb(252, 78, 3); \
|
882 |
">Recognition with ' + in_reader_type_list[ind] + \
|
883 |
'<sp style="font-size: 17px"> (with its own detector) \
|
884 |
</sp></p>'
|
885 |
else:
|
886 |
+
column_title = '<p style="font-size: 20px;color:rgb(252, 78, 3); \
|
887 |
">Recognition with ' + \
|
888 |
in_reader_type_list[ind]+ '</p>'
|
889 |
cols[ind_col].markdown(column_title, unsafe_allow_html=True)
|
|
|
903 |
with show_detect.container():
|
904 |
columns_size = [1 for x in reader_type_list]
|
905 |
column_width = [300 for x in reader_type_list]
|
906 |
+
columns_color = ["rgb(252, 78, 3)" for x in reader_type_list]
|
907 |
columns_size[reader_type_dict[st.session_state.detect_reader]] = 2
|
908 |
column_width[reader_type_dict[st.session_state.detect_reader]] = 400
|
909 |
columns_color[reader_type_dict[st.session_state.detect_reader]] = "rgb(228,26,28)"
|