Skip to content

Commit

Permalink
[Page num crop alg] inc obj's max merge dist to 1% of img w from 0.7%…
Browse files Browse the repository at this point in the history
… to handle thin fonts.
  • Loading branch information
neyney10 committed Jul 27, 2024
1 parent f71804f commit 38ff5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kindlecomicconverter/page_number_crop_alg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
We assume the distance between the digit is no more than 'max_dist_size' (x,y), and no more than 3 digits.
'''
max_shape_size_tolerated_size = (0.015*3, 0.02) # percent
min_shape_size_tolerated_size = (0.01, 0.005) # percent
min_shape_size_tolerated_size = (0.003, 0.006) # percent
window_h_size = max_shape_size_tolerated_size[1]*1.25 # percent
max_dist_size = (0.007, 0.002) # percent
max_dist_size = (0.01, 0.002) # percent


'''
Expand Down

0 comments on commit 38ff5e3

Please sign in to comment.