Commit graph

71 commits

Author SHA1 Message Date
Konstantin Baierer
4a903d2ec3 utils.find_num_col: clean up and simplify if-else 2021-02-02 14:33:36 +01:00
Konstantin Baierer
58c5d4dce6 eliminate unused "slope_first" arg to textline_contours_postprocessing 2021-02-02 14:12:03 +01:00
Konstantin Baierer
df3e161325 🎨 cleanup, remove unused vars, use max over if-else 2021-02-01 14:03:02 +01:00
Konstantin Baierer
8f0455590a fix signature of calculate_width_height_by_columns 2021-02-01 12:55:54 +01:00
Konstantin Baierer
0bd9a10525 continue simplifying copy/paste coordinate logic 2021-02-01 12:54:10 +01:00
Konstantin Baierer
28d35f8e6b start simplifying copy/paste coordinate logic 2021-02-01 12:07:50 +01:00
Konstantin Baierer
8498daec26 Merge branch 'import-typo' into refactor-cntd 2021-02-01 11:28:06 +01:00
Konstantin Baierer
5a46e7ed27 fix signature of calculate_polygon_coords 2021-02-01 11:27:33 +01:00
Konstantin Baierer
f214a39cba utils.separate_lines: fix import 2021-01-30 15:01:01 +01:00
Konstantin Baierer
81d7233e67 eynollah.py: use lxml not xml.etree 2021-01-30 14:57:43 +01:00
Konstantin Baierer
b93c1923d0 clean up empty lines, fix syntax error 2021-01-29 17:44:54 +01:00
Konstantin Baierer
7905b3b9d2 outfactor calculate_width_height_by_columns 2021-01-29 17:34:18 +01:00
Konstantin Baierer
fd0ea5e0a4 Merge branch 'import-typo' into refactor-cntd 2021-01-29 17:13:02 +01:00
Konstantin Baierer
90c8af9595 fix import {,.}utils.xml, ht @bertsky 2021-01-29 16:10:15 +01:00
Konstantin Baierer
ae1d335010 🎨 remove extraneous empty lines, simplify elif to else where possible 2021-01-28 19:11:28 +01:00
Konstantin Baierer
dfb294eb25 outfactor calculate_polygon_coords 2021-01-28 18:39:45 +01:00
Konstantin Baierer
4d31a21c3e keep id_indexer_l thru serialize_lines_in_region 2021-01-28 18:39:16 +01:00
Konstantin Baierer
e11d9adfea outfactor serialize_lines_in_region 2021-01-28 17:23:43 +01:00
Konstantin Baierer
4a5c99008a eynollah: define self.cont_page in __init__, extract page coord calculation 2021-01-28 15:10:06 +01:00
Konstantin Baierer
52df6972ad rename: image_{dir,filename}, {f_name,image_filename_stem} 2021-01-27 12:52:51 +01:00
Konstantin Baierer
f5e11a1056 remove commented out code in eynollah.py 2021-01-27 12:11:26 +01:00
Konstantin Baierer
19895b0194 rename: image_{dir,filename}, {f_name,image_filename_stem} 2021-01-27 11:59:42 +01:00
Konstantin Baierer
2bef2d4c04 use pathlib to determine f_name 2021-01-27 11:51:23 +01:00
vahidrezanezhad
85d631aadf
Update separate_lines.py from local 2021-01-12 10:56:53 +01:00
vahidrezanezhad
a8f7776f85
Update __init__.py from local 2021-01-12 10:50:19 +01:00
vahidrezanezhad
f3c70861e0
Update eynolllah.py from local 2021-01-12 10:47:20 +01:00
Konstantin Baierer
ff7b5ce409 use lxml, factor PAGE creation to utils.xml 2020-12-11 13:23:56 +01:00
Konstantin Baierer
14d80700d4 remove import seaborn 2020-12-11 12:41:36 +01:00
Clemens Neudecker
e9d132e1b8
upgrade to PAGE-XML 2019
(fixes https://github.com/qurator-spk/eynollah/issues/6)
2020-12-09 22:41:55 +01:00
vahidrezanezhad
3aecf47f53
Update eynollah.py 2020-12-09 17:11:05 +01:00
vahidrezanezhad
38a7154130
Missing functions from contour added 2020-12-09 17:07:04 +01:00
vahidrezanezhad
87a967e622
missing functions and remove self. prefix 2020-12-09 17:04:27 +01:00
Konstantin Baierer
c16533dc2c remove unused VERY_LARGE_NUMBER constant 2020-12-03 18:25:42 +01:00
Konstantin Baierer
a4c748246a Merge branch 'main' into refactor 2020-12-02 17:05:53 +01:00
Konstantin Baierer
f210054eb4 Merge remote-tracking branch 'origin/main' into basic-python-tooling 2020-12-01 13:46:55 +01:00
Konstantin Baierer
c0ae2dc7fa deduplicate code seperate_lines{,_vertical} 2020-11-30 13:54:06 +01:00
Konstantin Baierer
11315da683 remove type annotations in unused 2020-11-30 13:26:00 +01:00
Konstantin Baierer
87ef313502 more outsourcing of utils 2020-11-27 14:38:59 +01:00
Konstantin Baierer
fb247dafc2 factor more methods out of utils 2020-11-27 13:16:55 +01:00
Konstantin Baierer
8c72f8bc03 split utils into contour, rotate, separate_lines 2020-11-27 12:04:28 +01:00
Konstantin Baierer
a2341deab4 🎨 remove trailing spaces 2020-11-25 19:13:47 +01:00
Konstantin Baierer
6ab7abdfcd 🔥 manually merge 58ecb57 2020-11-25 19:12:34 +01:00
Konstantin Baierer
58ecb5708e patch in changes from 37c0338 by @vahidrezanezhad 2020-11-25 17:05:26 +01:00
Konstantin Baierer
145b2fcd98 more extraction of unused functions 2020-11-25 15:32:07 +01:00
Konstantin Baierer
915e076774 more extraction of unused functions 2020-11-25 15:02:36 +01:00
Konstantin Baierer
f8c153775b more extraction of util/unused functions 2020-11-25 14:40:51 +01:00
Konstantin Baierer
3bb516bfb5 more extraction of util/unused functions 2020-11-24 19:49:44 +01:00
Konstantin Baierer
1fa123fcf8 return_deskew_slop: move to utils 2020-11-24 19:33:16 +01:00
Konstantin Baierer
340b48ab4b return_deskew_slop: change signature, eliminate references to self 2020-11-24 19:19:07 +01:00
Konstantin Baierer
aa76a223df more extraction of util functions 2020-11-24 16:08:14 +01:00