1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Fix a missing line from previous commit.

This commit is contained in:
neyney10
2024-10-19 14:27:13 +03:00
committed by Alex Xu
parent 50eb48fb9b
commit 6ba690659f

View File

@@ -55,6 +55,8 @@ def get_bbox_crop_margin_page_number(img, power=1, background_color='white'):
if not bw_bbox: # bbox cannot be found in case that the entire resulted image is black.
return None
left, top_y_pos, right, bot_y_pos = bw_bbox
'''
We inspect the lower bottom part of the image where we suspect might be a page number.
We assume that page number consist of 1 to 3 digits and the total min and max size of the number