Commit graph

730 commits

Author SHA1 Message Date
Konstantin Baierer
b3dd6685e7 sys.exit not necessary 2021-02-23 15:39:42 +01:00
Konstantin Baierer
461d3e31cf Merge remote-tracking branch 'origin/refactor-cntd' into ocrd-cli 2021-02-23 15:23:43 +01:00
Konstantin Baierer
48d8406fba remove unncessary try-except, formatting 2021-02-23 15:10:01 +01:00
vahidrezanezhad
881e2787ab
resolving issue with None num_col 2021-02-23 15:07:13 +01:00
Konstantin Baierer
4480302b53 write_into_page.*: use one variable name only 2021-02-23 14:07:33 +01:00
Konstantin Baierer
5f04fc7137 move the two xml serialization methods next to each other 2021-02-23 13:52:47 +01:00
Konstantin Baierer
fdbcfe44a0 🎨 simplify 2021-02-23 13:49:48 +01:00
Konstantin Baierer
bfb6e77db1 factor out reading order code, simplify 2021-02-23 13:44:45 +01:00
Konstantin Baierer
6035740b52 num_col should default to 0 not None 2021-02-23 13:02:43 +01:00
Konstantin Baierer
7b61b64665 🎨 remove dead code, spacing 2021-02-20 13:28:28 +01:00
Konstantin Baierer
bce983f3d4 keep images in memory and copy 2021-02-18 16:28:55 +01:00
Konstantin Baierer
8c603ae16d check_dpi: use OcrdExif instead identify callout 2021-02-18 14:27:08 +01:00
vahidrezanezhad
0a92543245
functionality checked 2021-02-16 00:31:44 +01:00
vahidrezanezhad
8ab50a5486
Merge pull request #18 from qurator-spk/keras-23
restrict keras version to < 2.4
2021-02-15 17:30:05 +01:00
vahidrezanezhad
37431d4840
resolving error caused by dpi of image on windows [temporary] 2021-02-15 11:08:38 +01:00
Konstantin Baierer
ef3ccd0d5f fix special case where num_col_classifier was unbound 2021-02-05 18:59:29 +01:00
Konstantin Baierer
5af0c5df9e Merge branch 'refactor-cntd' of https://github.com/qurator-spk/eynollah into refactor-cntd 2021-02-05 18:48:06 +01:00
Konstantin Baierer
420a9ca252 more outfactoring run code to methods 2021-02-05 18:45:14 +01:00
Konstantin Baierer
b06acbf754 untangle run even further 2021-02-05 18:12:20 +01:00
Konstantin Baierer
8f82e81551 remove unnecessary patches assignment, simplify if-else 2021-02-05 17:35:29 +01:00
Konstantin Baierer
9dca742694 further untangle run 2021-02-05 17:26:45 +01:00
Konstantin Baierer
bf6eaafbc7 untangle run 2021-02-05 16:16:13 +01:00
Konstantin Baierer
585445980b Merge branch 'keras-23' into refactor-cntd 2021-02-05 15:05:24 +01:00
Konstantin Baierer
a14462db22 remove else-pass, reset t1 after measuring 2021-02-05 14:58:49 +01:00
Konstantin Baierer
e97cc82417 typo in setup.py 2021-02-05 13:36:13 +01:00
Konstantin Baierer
da563519ec require setuptools >= 50 2021-02-05 13:34:17 +01:00
Konstantin Baierer
f043eea273 setup.py: install also .utils 2021-02-05 13:26:14 +01:00
Konstantin Baierer
1dec9b8731 simplify if-else in run 2021-02-05 12:30:00 +01:00
Konstantin Baierer
916e0a1870 restrict keras version to < 2.4 2021-02-05 10:23:24 +01:00
Clemens Neudecker
306acd3618
replace PrintSpace with Border
fix https://github.com/qurator-spk/eynollah/issues/15
2021-02-04 23:48:46 +01:00
Konstantin Baierer
70d0b985a9 cli: add a --log-level option 2021-02-04 19:59:28 +01:00
Konstantin Baierer
ca23b32e9b split do_order_of_regions, lots of logging 2021-02-04 19:55:54 +01:00
Konstantin Baierer
8cd4067fc5 cli: add negative flag variants (--no/-no) 2021-02-04 18:46:03 +01:00
Konstantin Baierer
2929ba1ee3 imread: use cv2.THREAD_GRAYSCALE constant rather than 0 2021-02-04 18:33:06 +01:00
Konstantin Baierer
3b10128c8f simplify if-else logic for enhancement 2021-02-04 18:28:27 +01:00
Konstantin Baierer
e0418773d9 start logging 2021-02-04 17:39:00 +01:00
Konstantin Baierer
ef1e32ee97 restrict keras version to < 2.4 2021-02-04 15:37:36 +01:00
Konstantin Baierer
6bb32c0bfd ci: install test dependencies 2021-02-04 15:27:20 +01:00
Konstantin Baierer
4e1956df5e do an actual test run 2021-02-04 15:21:14 +01:00
vahidrezanezhad
3905203294
matplotlib.pyplot removed 2021-02-03 14:51:12 +01:00
vahidrezanezhad
306e2a0a13
Headers were not written correctly. Fixed 2021-02-03 14:49:46 +01:00
Konstantin Baierer
c2e9ebb366 move all plotting code to EynollahPlotter 2021-02-02 16:00:33 +01:00
Konstantin Baierer
853fd12e40 extract matplotlib code to method 2021-02-02 14:34:25 +01:00
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
c7d509bb2c
Merge pull request #12 from qurator-spk/import-typo
fix import {,.}utils.xml, ht @bertsky
2021-02-01 12:04:13 +01:00