Spaces:
Running
Running
testing 3 x 3 chunk
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def render_pdf_page_as_image(doc, zoom=2.0):
|
|
| 40 |
# -----------------------------
|
| 41 |
# Chunk image into pieces
|
| 42 |
# -----------------------------
|
| 43 |
-
def chunk_image(image, rows=
|
| 44 |
width, height = image.size
|
| 45 |
chunk_width = width // cols
|
| 46 |
chunk_height = height // rows
|
|
|
|
| 40 |
# -----------------------------
|
| 41 |
# Chunk image into pieces
|
| 42 |
# -----------------------------
|
| 43 |
+
def chunk_image(image, rows=3, cols=3):
|
| 44 |
width, height = image.size
|
| 45 |
chunk_width = width // cols
|
| 46 |
chunk_height = height // rows
|