Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,8 @@ def read_pdf_with_pdfplumber(file):
|
|
67 |
all_page_text=" "
|
68 |
with pdfplumber.open(file) as pdf:
|
69 |
page = pdf.pages[0]
|
70 |
-
|
|
|
71 |
img = img.save("img.png")
|
72 |
image_name = cv2.imread("img.png")
|
73 |
# get co-ordinates to c
|
|
|
67 |
all_page_text=" "
|
68 |
with pdfplumber.open(file) as pdf:
|
69 |
page = pdf.pages[0]
|
70 |
+
ge=page.to_image(resolution="400")
|
71 |
+
img = Image.open(ge)
|
72 |
img = img.save("img.png")
|
73 |
image_name = cv2.imread("img.png")
|
74 |
# get co-ordinates to c
|