Commit Graph

86 Commits (881e2787ab977f2f6a6f0f2914a44a00b9957298)

Author SHA1 Message Date
vahidrezanezhad 881e2787ab
resolving issue with None num_col
Konstantin Baierer 6035740b52 num_col should default to 0 not None
Konstantin Baierer 7b61b64665 🎨 remove dead code, spacing
Konstantin Baierer bce983f3d4 keep images in memory and copy
Konstantin Baierer 8c603ae16d check_dpi: use OcrdExif instead identify callout
vahidrezanezhad 0a92543245
functionality checked
Konstantin Baierer ef3ccd0d5f fix special case where num_col_classifier was unbound
Konstantin Baierer 5af0c5df9e Merge branch 'refactor-cntd' of https://github.com/qurator-spk/eynollah into refactor-cntd
Konstantin Baierer 420a9ca252 more outfactoring run code to methods
Konstantin Baierer b06acbf754 untangle run even further
Konstantin Baierer 8f82e81551 remove unnecessary patches assignment, simplify if-else
Konstantin Baierer 9dca742694 further untangle run
Konstantin Baierer bf6eaafbc7 untangle run
Konstantin Baierer a14462db22 remove else-pass, reset t1 after measuring
Konstantin Baierer 1dec9b8731 simplify if-else in run
Clemens Neudecker 306acd3618
replace `PrintSpace` with `Border`
fix https://github.com/qurator-spk/eynollah/issues/15
Konstantin Baierer ca23b32e9b split do_order_of_regions, lots of logging
Konstantin Baierer 8cd4067fc5 cli: add negative flag variants (--no/-no)
Konstantin Baierer 2929ba1ee3 imread: use cv2.THREAD_GRAYSCALE constant rather than 0
Konstantin Baierer 3b10128c8f simplify if-else logic for enhancement
Konstantin Baierer e0418773d9 start logging
vahidrezanezhad 3905203294
matplotlib.pyplot removed
vahidrezanezhad 306e2a0a13
Headers were not written correctly. Fixed
Konstantin Baierer c2e9ebb366 move all plotting code to EynollahPlotter
Konstantin Baierer 853fd12e40 extract matplotlib code to method
Konstantin Baierer 58c5d4dce6 eliminate unused "slope_first" arg to textline_contours_postprocessing
Konstantin Baierer df3e161325 🎨 cleanup, remove unused vars, use max over if-else
Konstantin Baierer 8f0455590a fix signature of calculate_width_height_by_columns
Konstantin Baierer 0bd9a10525 continue simplifying copy/paste coordinate logic
Konstantin Baierer 28d35f8e6b start simplifying copy/paste coordinate logic
Konstantin Baierer 8498daec26 Merge branch 'import-typo' into refactor-cntd
Konstantin Baierer 5a46e7ed27 fix signature of calculate_polygon_coords
Konstantin Baierer 81d7233e67 eynollah.py: use lxml not xml.etree
Konstantin Baierer b93c1923d0 clean up empty lines, fix syntax error
Konstantin Baierer 7905b3b9d2 outfactor calculate_width_height_by_columns
Konstantin Baierer fd0ea5e0a4 Merge branch 'import-typo' into refactor-cntd
Konstantin Baierer 90c8af9595 fix import {,.}utils.xml, ht @bertsky
Konstantin Baierer ae1d335010 🎨 remove extraneous empty lines, simplify elif to else where possible
Konstantin Baierer dfb294eb25 outfactor calculate_polygon_coords
Konstantin Baierer 4d31a21c3e keep id_indexer_l thru serialize_lines_in_region
Konstantin Baierer e11d9adfea outfactor serialize_lines_in_region
Konstantin Baierer 4a5c99008a eynollah: define self.cont_page in __init__, extract page coord calculation
Konstantin Baierer 52df6972ad rename: image_{dir,filename}, {f_name,image_filename_stem}
Konstantin Baierer f5e11a1056 remove commented out code in eynollah.py
Konstantin Baierer 19895b0194 rename: image_{dir,filename}, {f_name,image_filename_stem}
Konstantin Baierer 2bef2d4c04 use pathlib to determine f_name
vahidrezanezhad f3c70861e0
Update eynolllah.py from local
Konstantin Baierer ff7b5ce409 use lxml, factor PAGE creation to utils.xml
Konstantin Baierer 14d80700d4 remove import seaborn
Clemens Neudecker e9d132e1b8
upgrade to PAGE-XML 2019
(fixes https://github.com/qurator-spk/eynollah/issues/6)