edesaras commited on
Commit
4fd0e7b
1 Parent(s): 4683ff4

disabled text patch plottinh

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -73,8 +73,8 @@ def file_uploader_cb(model, ocr_model, ocr_processor, uploaded_file, font_size,
73
  st.subheader('Transcription')
74
  crops, text_bboxes = extract_text_patches(result, image)
75
  texts = ocr_predict(ocr_model, ocr_processor, crops)
76
- transcription_df = pd.DataFrame(zip(texts, *np.array(text_bboxes).T, [st.image(crop) for crop in crops]),
77
- columns=['Transcription', 'xmin', 'ymin', 'xmax', 'ymax', 'Image'])
78
  st.dataframe(transcription_df)
79
 
80
  def image_capture_cb(model, ocr_model, ocr_processor, capture, font_size, line_width, col):
 
73
  st.subheader('Transcription')
74
  crops, text_bboxes = extract_text_patches(result, image)
75
  texts = ocr_predict(ocr_model, ocr_processor, crops)
76
+ transcription_df = pd.DataFrame(zip(texts, *np.array(text_bboxes).T),
77
+ columns=['Transcription', 'xmin', 'ymin', 'xmax', 'ymax'])
78
  st.dataframe(transcription_df)
79
 
80
  def image_capture_cb(model, ocr_model, ocr_processor, capture, font_size, line_width, col):