Commit Graph

121 Commits (697ff99bbab57ea08620712ad160933a8d2b79b3)

Author SHA1 Message Date
Konstantin Baierer 4a903d2ec3 utils.find_num_col: clean up and simplify if-else
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 f214a39cba utils.separate_lines: fix import
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 85d631aadf
Update separate_lines.py from local
vahidrezanezhad a8f7776f85
Update __init__.py from local
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)
vahidrezanezhad 3aecf47f53
Update eynollah.py
vahidrezanezhad 38a7154130
Missing functions from contour added
vahidrezanezhad 87a967e622
missing functions and remove self. prefix
Konstantin Baierer c16533dc2c remove unused VERY_LARGE_NUMBER constant
Konstantin Baierer a4c748246a Merge branch 'main' into refactor
Konstantin Baierer f210054eb4 Merge remote-tracking branch 'origin/main' into basic-python-tooling
Konstantin Baierer c0ae2dc7fa deduplicate code seperate_lines{,_vertical}
Konstantin Baierer 11315da683 remove type annotations in unused
Konstantin Baierer 87ef313502 more outsourcing of utils
Konstantin Baierer fb247dafc2 factor more methods out of utils
Konstantin Baierer 8c72f8bc03 split utils into contour, rotate, separate_lines
Konstantin Baierer a2341deab4 🎨 remove trailing spaces
Konstantin Baierer 6ab7abdfcd 🔥 manually merge 58ecb57
Konstantin Baierer 58ecb5708e patch in changes from 37c0338 by @vahidrezanezhad
Konstantin Baierer 145b2fcd98 more extraction of unused functions
Konstantin Baierer 915e076774 more extraction of unused functions
Konstantin Baierer f8c153775b more extraction of util/unused functions
Konstantin Baierer 3bb516bfb5 more extraction of util/unused functions
Konstantin Baierer 1fa123fcf8 return_deskew_slop: move to utils
Konstantin Baierer 340b48ab4b return_deskew_slop: change signature, eliminate references to self
Konstantin Baierer aa76a223df more extraction of util functions
Konstantin Baierer 890e2a6988 more extraction of util/unused functions
Konstantin Baierer 8796b9daf7 unify find_features_of_contour{,e}s
Konstantin Baierer 86c809b58f more extraction of util functions
Konstantin Baierer bf209d1622 do not store dpi on instance
Konstantin Baierer 43f5e7e4e4 do not store dpi on instance
Konstantin Baierer 63fe7ac763 more extraction of util/unused functions
Konstantin Baierer 3f6ea176e7 more extraction of util/unused functions
Konstantin Baierer cf1d9b9fd0 factor out more methods
Konstantin Baierer 731b8ded6f extract more methods, collect unused methods
Konstantin Baierer 6c305de279 set up constants for "magic numbers"
Konstantin Baierer 97bc57be35 Use boolean values for eynollah's flags
Konstantin Baierer 3dda276a13 🎨 reformat cli.py with black
Konstantin Baierer ec553a2060 rfct: create utils and extract filter_contours_area_of_image_tables
Konstantin Baierer 62e76324be rfct: move CLI to dedicated module
Konstantin Baierer 9d6fc72d20 rfct: reorganize imports some more
Konstantin Baierer a707455ec6 🎨 run black -l 10000 on eynollah.py
Konstantin Baierer 3bfc8c20e0 rfct: silence keras load messages
Konstantin Baierer eff10154cf rfct: remove all trailing whitespace
Konstantin Baierer 9596a449fa rfct: clean up and group imports
Konstantin Baierer f229907e41 extend setup.py, add Makefile, gitignore, requirements.txt
cneud 59b2dcb619 init