Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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 |
|