From 4c217018ccdff3a409aa4a8ff35fca02eedd3dca Mon Sep 17 00:00:00 2001 From: vahid Date: Thu, 27 Apr 2023 21:07:33 +0200 Subject: [PATCH] textline light version -tll can not work without enabling -light option --- qurator/eynollah/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qurator/eynollah/cli.py b/qurator/eynollah/cli.py index ddf986e..8c42f64 100644 --- a/qurator/eynollah/cli.py +++ b/qurator/eynollah/cli.py @@ -164,6 +164,9 @@ def main( elif enable_plotting and not (save_layout or save_deskewed or save_all or save_page or save_images or allow_enhancement): print("Error: You used -ep to enable plotting but set none of -sl, -sd, -sa, -sp, -si or -ae") sys.exit(1) + if textline_light and not light_version: + print('Error: You used -tll to enable light textline detection but -light is not enabled') + sys.exit(1) eynollah = Eynollah( image_filename=image, dir_out=out,