allopeap commited on
Commit
ddafe9f
·
verified ·
1 Parent(s): 0f22bc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def detectarCatastro(pdf):
68
  for page_num in range(len(pdf)):
69
  page = pdf.load_page(page_num)
70
  pix = page.get_pixmap()
71
- image_np = np.frombuffer(image.samples, dtype=np.uint8).reshape((image.height, image.width, 4))
72
  images.append(image_np)
73
 
74
 
 
68
  for page_num in range(len(pdf)):
69
  page = pdf.load_page(page_num)
70
  pix = page.get_pixmap()
71
+ image_np = np.frombuffer(pix.samples, dtype=np.uint8).reshape((pix.height, pix.width, 4))
72
  images.append(image_np)
73
 
74