Commit graph

  • 3d77b62f89 remove unused Konstantin Baierer 2021-02-24 18:13:17 +01:00
  • c730e2eefd move all XML handling to EynollahXmlWriter Konstantin Baierer 2021-02-24 17:14:34 +01:00
  • 22184024fa cli: fail early with inconsistent plotting options Konstantin Baierer 2021-02-24 16:36:03 +01:00
  • 045ab86fd5 eynollah.run returns the pcgts now; Konstantin Baierer 2021-02-24 16:29:40 +01:00
  • 4c81fa2e46 simplify constructs, remove print-debugging stmts Konstantin Baierer 2021-02-24 16:05:30 +01:00
  • 0eda4a174a move xml_reading_order to utils.xml Konstantin Baierer 2021-02-24 15:53:31 +01:00
  • c80fddb3b8 remove unused delete_seperator_around Konstantin Baierer 2021-02-24 15:23:55 +01:00
  • 133982380f implent_law_head_main_not_parallel is unused Konstantin Baierer 2021-02-24 15:17:02 +01:00
  • d7d388671d return_hor_spliter_by_index is unused Konstantin Baierer 2021-02-24 15:15:37 +01:00
  • 2952a1ca13 remove more dead code Konstantin Baierer 2021-02-24 15:06:28 +01:00
  • 6398579a72 simplify calculate_page_coords Konstantin Baierer 2021-02-24 14:42:15 +01:00
  • ddeb6938e5 self.kernel -> constant KERNEL Konstantin Baierer 2021-02-24 13:55:12 +01:00
  • 254dd35666 MAX_SLOPE constant Konstantin Baierer 2021-02-24 13:48:20 +01:00
  • 605f583d21 log exceptions as errors Konstantin Baierer 2021-02-24 13:32:26 +01:00
  • 9dcb696e99 use enumerate instead of manual counter Konstantin Baierer 2021-02-24 13:07:01 +01:00
  • 697ff99bba use constants for "magic numbers" Konstantin Baierer 2021-02-24 13:03:42 +01:00
  • 60208a46f0 remove unnecessary del/gc.collect, eliminate unnecessary constructs Konstantin Baierer 2021-02-24 12:53:49 +01:00
  • cb6bc17ce1 eliminate more unused vars Konstantin Baierer 2021-02-24 12:33:37 +01:00
  • 6637eff3e7 eliminate curved_line argument Konstantin Baierer 2021-02-24 12:12:02 +01:00
  • 4e97ca0fae split generation of XML from writing to disk Konstantin Baierer 2021-02-24 12:09:03 +01:00
  • cbbd7fc4f0 make line serialization uniform Konstantin Baierer 2021-02-23 17:55:00 +01:00
  • 718efabf89 🎨 move xml methods together Konstantin Baierer 2021-02-23 17:28:23 +01:00
  • b44d298d16 📝 readme: compare full vs no-full layout Konstantin Baierer 2021-02-23 17:20:35 +01:00
  • a65caa4d25 🎨 unncesssary if True Konstantin Baierer 2021-02-23 17:11:32 +01:00
  • 68d5c0d523 remove unused return_hor_spliter_by_index_for_without_verticals Konstantin Baierer 2021-02-23 16:47:59 +01:00
  • 35838069fc remove unused filter_contours_area_of_image_interiors Konstantin Baierer 2021-02-23 16:42:53 +01:00
  • e2ae6dbd44 remove unused find_features_of_contours Konstantin Baierer 2021-02-23 16:39:33 +01:00
  • 823592126e remove unused return_bonding_box_of_contours Konstantin Baierer 2021-02-23 16:38:17 +01:00
  • 9454a921b1 remove unused return_contours_of_interested_region_and_bounding_box Konstantin Baierer 2021-02-23 16:37:13 +01:00
  • 732a27fe77 remove unused variables Konstantin Baierer 2021-02-23 16:36:11 +01:00
  • f96a9c52d1 uniform coords calculation Konstantin Baierer 2021-02-23 16:10:09 +01:00
  • 6d476230ce remove unnecessary (hope so) try-except Konstantin Baierer 2021-02-23 16:00:51 +01:00
  • 23e97a5e0b factor out add_textequiv Konstantin Baierer 2021-02-23 15:45:38 +01:00
  • b3dd6685e7 sys.exit not necessary Konstantin Baierer 2021-02-23 15:39:42 +01:00
  • 461d3e31cf Merge remote-tracking branch 'origin/refactor-cntd' into ocrd-cli Konstantin Baierer 2021-02-23 15:23:43 +01:00
  • 48d8406fba remove unncessary try-except, formatting Konstantin Baierer 2021-02-23 15:10:01 +01:00
  • 881e2787ab
    resolving issue with None num_col vahidrezanezhad 2021-02-23 15:07:13 +01:00
  • 4480302b53 write_into_page.*: use one variable name only Konstantin Baierer 2021-02-23 14:07:33 +01:00
  • 5f04fc7137 move the two xml serialization methods next to each other Konstantin Baierer 2021-02-23 13:52:11 +01:00
  • fdbcfe44a0 🎨 simplify Konstantin Baierer 2021-02-23 13:49:48 +01:00
  • bfb6e77db1 factor out reading order code, simplify Konstantin Baierer 2021-02-23 13:44:45 +01:00
  • 6035740b52 num_col should default to 0 not None Konstantin Baierer 2021-02-23 13:02:43 +01:00
  • 7b61b64665 🎨 remove dead code, spacing Konstantin Baierer 2021-02-20 13:28:28 +01:00
  • bce983f3d4 keep images in memory and copy Konstantin Baierer 2021-02-18 16:28:55 +01:00
  • 8c603ae16d check_dpi: use OcrdExif instead identify callout Konstantin Baierer 2021-02-18 14:27:08 +01:00
  • 0a92543245
    functionality checked vahidrezanezhad 2021-02-16 00:31:44 +01:00
  • 8ab50a5486
    Merge pull request #18 from qurator-spk/keras-23 vahidrezanezhad 2021-02-15 17:30:05 +01:00
  • 37431d4840
    resolving error caused by dpi of image on windows [temporary] vahidrezanezhad 2021-02-15 11:08:38 +01:00
  • ef3ccd0d5f fix special case where num_col_classifier was unbound Konstantin Baierer 2021-02-05 18:59:29 +01:00
  • 5af0c5df9e Merge branch 'refactor-cntd' of https://github.com/qurator-spk/eynollah into refactor-cntd Konstantin Baierer 2021-02-05 18:48:06 +01:00
  • 420a9ca252 more outfactoring run code to methods Konstantin Baierer 2021-02-05 18:45:14 +01:00
  • b06acbf754 untangle run even further Konstantin Baierer 2021-02-05 18:12:20 +01:00
  • 8f82e81551 remove unnecessary patches assignment, simplify if-else Konstantin Baierer 2021-02-05 17:35:29 +01:00
  • 9dca742694 further untangle run Konstantin Baierer 2021-02-05 17:26:45 +01:00
  • bf6eaafbc7 untangle run Konstantin Baierer 2021-02-05 16:16:13 +01:00
  • 585445980b Merge branch 'keras-23' into refactor-cntd Konstantin Baierer 2021-02-05 15:05:24 +01:00
  • a14462db22 remove else-pass, reset t1 after measuring Konstantin Baierer 2021-02-05 14:58:49 +01:00
  • e97cc82417 typo in setup.py Konstantin Baierer 2021-02-05 13:36:13 +01:00
  • da563519ec require setuptools >= 50 Konstantin Baierer 2021-02-05 13:34:17 +01:00
  • f043eea273 setup.py: install also .utils Konstantin Baierer 2021-02-05 13:26:14 +01:00
  • 1dec9b8731 simplify if-else in run Konstantin Baierer 2021-02-05 12:30:00 +01:00
  • 916e0a1870 restrict keras version to < 2.4 Konstantin Baierer 2021-02-04 15:37:36 +01:00
  • 306acd3618
    replace PrintSpace with Border Clemens Neudecker 2021-02-04 23:48:46 +01:00
  • 70d0b985a9 cli: add a --log-level option Konstantin Baierer 2021-02-04 19:59:28 +01:00
  • ca23b32e9b split do_order_of_regions, lots of logging Konstantin Baierer 2021-02-04 19:55:54 +01:00
  • 8cd4067fc5 cli: add negative flag variants (--no/-no) Konstantin Baierer 2021-02-04 18:46:03 +01:00
  • 2929ba1ee3 imread: use cv2.THREAD_GRAYSCALE constant rather than 0 Konstantin Baierer 2021-02-04 18:33:06 +01:00
  • 3b10128c8f simplify if-else logic for enhancement Konstantin Baierer 2021-02-04 18:28:27 +01:00
  • e0418773d9 start logging Konstantin Baierer 2021-02-04 17:39:00 +01:00
  • ef1e32ee97 restrict keras version to < 2.4 Konstantin Baierer 2021-02-04 15:37:36 +01:00
  • 6bb32c0bfd ci: install test dependencies Konstantin Baierer 2021-02-04 15:27:20 +01:00
  • 4e1956df5e do an actual test run Konstantin Baierer 2021-02-04 15:21:14 +01:00
  • 3905203294
    matplotlib.pyplot removed vahidrezanezhad 2021-02-03 14:51:12 +01:00
  • 306e2a0a13
    Headers were not written correctly. Fixed vahidrezanezhad 2021-02-03 14:49:46 +01:00
  • c2e9ebb366 move all plotting code to EynollahPlotter Konstantin Baierer 2021-02-02 15:36:43 +01:00
  • 853fd12e40 extract matplotlib code to method Konstantin Baierer 2021-02-02 14:34:25 +01:00
  • 4a903d2ec3 utils.find_num_col: clean up and simplify if-else Konstantin Baierer 2021-02-02 14:33:36 +01:00
  • 58c5d4dce6 eliminate unused "slope_first" arg to textline_contours_postprocessing Konstantin Baierer 2021-02-02 14:12:03 +01:00
  • df3e161325 🎨 cleanup, remove unused vars, use max over if-else Konstantin Baierer 2021-02-01 14:03:02 +01:00
  • 8f0455590a fix signature of calculate_width_height_by_columns Konstantin Baierer 2021-02-01 12:55:54 +01:00
  • 0bd9a10525 continue simplifying copy/paste coordinate logic Konstantin Baierer 2021-02-01 12:54:10 +01:00
  • 28d35f8e6b start simplifying copy/paste coordinate logic Konstantin Baierer 2021-02-01 12:07:50 +01:00
  • c7d509bb2c
    Merge pull request #12 from qurator-spk/import-typo Konstantin Baierer 2021-02-01 12:04:13 +01:00
  • 8498daec26 Merge branch 'import-typo' into refactor-cntd Konstantin Baierer 2021-02-01 11:28:06 +01:00
  • 5a46e7ed27 fix signature of calculate_polygon_coords Konstantin Baierer 2021-02-01 11:27:33 +01:00
  • f214a39cba utils.separate_lines: fix import Konstantin Baierer 2021-01-30 15:01:01 +01:00
  • 81d7233e67 eynollah.py: use lxml not xml.etree Konstantin Baierer 2021-01-30 14:57:43 +01:00
  • b93c1923d0 clean up empty lines, fix syntax error Konstantin Baierer 2021-01-29 17:44:54 +01:00
  • 7905b3b9d2 outfactor calculate_width_height_by_columns Konstantin Baierer 2021-01-29 17:34:18 +01:00
  • fd0ea5e0a4 Merge branch 'import-typo' into refactor-cntd Konstantin Baierer 2021-01-29 17:13:02 +01:00
  • 90c8af9595 fix import {,.}utils.xml, ht @bertsky Konstantin Baierer 2021-01-29 16:10:15 +01:00
  • ae1d335010 🎨 remove extraneous empty lines, simplify elif to else where possible Konstantin Baierer 2021-01-28 19:11:28 +01:00
  • dfb294eb25 outfactor calculate_polygon_coords Konstantin Baierer 2021-01-28 18:39:45 +01:00
  • 4d31a21c3e keep id_indexer_l thru serialize_lines_in_region Konstantin Baierer 2021-01-28 18:39:16 +01:00
  • e11d9adfea outfactor serialize_lines_in_region Konstantin Baierer 2021-01-28 17:23:43 +01:00
  • 4a5c99008a eynollah: define self.cont_page in __init__, extract page coord calculation Konstantin Baierer 2021-01-28 15:10:06 +01:00
  • 52df6972ad rename: image_{dir,filename}, {f_name,image_filename_stem} Konstantin Baierer 2021-01-27 12:52:51 +01:00
  • f5e11a1056 remove commented out code in eynollah.py Konstantin Baierer 2021-01-27 12:11:26 +01:00
  • 19895b0194 rename: image_{dir,filename}, {f_name,image_filename_stem} Konstantin Baierer 2021-01-27 11:59:42 +01:00
  • 2bef2d4c04 use pathlib to determine f_name Konstantin Baierer 2021-01-27 11:51:23 +01:00