Spaces:
Sleeping
Sleeping
adding more debug
Browse files
utils.py
CHANGED
@@ -375,8 +375,9 @@ def gray_pdf_image_np_to_text(image_index,gray_pdf_image_np, debug=False):
|
|
375 |
# print("max height image start")
|
376 |
# st.image(Image.fromarray(max_height_image))#to_be_displayed
|
377 |
# print("max height image end")
|
|
|
378 |
text=extract_two_columns_text(image_index,max_height_image,debug)
|
379 |
-
print(text)
|
380 |
if text == "error":
|
381 |
print("not two columns")
|
382 |
max_height_image_converted = Image.fromarray(cv2.cvtColor(max_height_image, cv2.COLOR_BGR2RGB))
|
|
|
375 |
# print("max height image start")
|
376 |
# st.image(Image.fromarray(max_height_image))#to_be_displayed
|
377 |
# print("max height image end")
|
378 |
+
print("start text extraction")
|
379 |
text=extract_two_columns_text(image_index,max_height_image,debug)
|
380 |
+
print("gray_pdf_image_np_to_text extracted text",text)
|
381 |
if text == "error":
|
382 |
print("not two columns")
|
383 |
max_height_image_converted = Image.fromarray(cv2.cvtColor(max_height_image, cv2.COLOR_BGR2RGB))
|