Loren commited on
Commit
1da544f
β€’
1 Parent(s): a3acb53

Update app_pages/ocr_comparator.py

Browse files
Files changed (1) hide show
  1. app_pages/ocr_comparator.py +5 -5
app_pages/ocr_comparator.py CHANGED
@@ -169,7 +169,7 @@ def app():
169
  st.session_state.column_width = [400] + [300 for x in out_reader_type_list[1:]]
170
  if 'columns_color' not in st.session_state:
171
  st.session_state.columns_color = ["rgb(228,26,28)"] + \
172
- ["rgb(0,0,0)" for x in out_reader_type_list[1:]]
173
  if 'list_coordinates' not in st.session_state:
174
  st.session_state.list_coordinates = []
175
 
@@ -878,12 +878,12 @@ def app():
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,7 +903,7 @@ def app():
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)"
@@ -946,7 +946,7 @@ def app():
946
  st.session_state.columns_size = [2] + [1 for x in reader_type_list[1:]]
947
  st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
948
  st.session_state.columns_color = ["rgb(228,26,28)"] + \
949
- ["rgb(0,0,0)" for x in reader_type_list[1:]]
950
 
951
  # Clear caches
952
  easyocr_detect.clear()
 
169
  st.session_state.column_width = [400] + [300 for x in out_reader_type_list[1:]]
170
  if 'columns_color' not in st.session_state:
171
  st.session_state.columns_color = ["rgb(228,26,28)"] + \
172
+ ["rgb(12, 5, 105)" for x in out_reader_type_list[1:]]
173
  if 'list_coordinates' not in st.session_state:
174
  st.session_state.list_coordinates = []
175
 
 
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(228,26,28); \
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(228,26,28); \
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(12, 5, 105)" 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)"
 
946
  st.session_state.columns_size = [2] + [1 for x in reader_type_list[1:]]
947
  st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
948
  st.session_state.columns_color = ["rgb(228,26,28)"] + \
949
+ ["rgb(12, 5, 105)" for x in reader_type_list[1:]]
950
 
951
  # Clear caches
952
  easyocr_detect.clear()