disabled text patch plottinh
Browse files
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
|
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):
|
|
|
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):
|