diff --git a/main.py b/main.py index dd2af93..34e2825 100644 --- a/main.py +++ b/main.py @@ -47,8 +47,10 @@ def v_split(page): x = sum(x_clusters) / len(x_clusters) result = [page.within_bbox((0, 0, x, page.height)), page.within_bbox((x, 0, page.width, page.height))] if DEBUG: + i = 0 for page in result: - debug_show(debug_im(page)) + debug_show(debug_im(page), name=f'v-split-postsplit-{page.page_number}_{i}') + i += 1 return result def cluster(page):