Soumen commited on
Commit
25b7ddd
·
1 Parent(s): f09af4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- img = Image.open(page)
 
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