mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-02-20 16:32:03 +01:00
extracting ocr textline images and text: vertical lines threshold has changed to 1.4
This commit is contained in:
parent
a57914a68a
commit
ab43477451
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ def linegt_cli(
|
||||||
x, y, w, h = cv2.boundingRect(coords)
|
x, y, w, h = cv2.boundingRect(coords)
|
||||||
|
|
||||||
|
|
||||||
if exclude_vertical_lines and h > 2 * w:
|
if exclude_vertical_lines and h > 1.4 * w:
|
||||||
img_crop = None
|
img_crop = None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
@ -191,7 +191,7 @@ def linegt_cli(
|
||||||
|
|
||||||
x, y, w, h = cv2.boundingRect(textline_coords)
|
x, y, w, h = cv2.boundingRect(textline_coords)
|
||||||
|
|
||||||
if exclude_vertical_lines and h > 2 * w:
|
if exclude_vertical_lines and h > 1.4 * w:
|
||||||
img_crop = None
|
img_crop = None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue