Commit Graph

128 Commits (d7d388671d7a699480c3eeed7c571b2d7d8216f2)

Author SHA1 Message Date
Konstantin Baierer d7d388671d return_hor_spliter_by_index is unused
Konstantin Baierer 2952a1ca13 remove more dead code
Konstantin Baierer 6398579a72 simplify calculate_page_coords
Konstantin Baierer ddeb6938e5 self.kernel -> constant KERNEL
Konstantin Baierer 254dd35666 MAX_SLOPE constant
Konstantin Baierer 605f583d21 log exceptions as errors
Konstantin Baierer 9dcb696e99 use enumerate instead of manual counter
Konstantin Baierer 697ff99bba use constants for "magic numbers"
Konstantin Baierer 60208a46f0 remove unnecessary del/gc.collect, eliminate unnecessary constructs
Konstantin Baierer cb6bc17ce1 eliminate more unused vars
Konstantin Baierer 6637eff3e7 eliminate curved_line argument
Konstantin Baierer 4e97ca0fae split generation of XML from writing to disk
Konstantin Baierer cbbd7fc4f0 make line serialization uniform
Konstantin Baierer 718efabf89 🎨 move xml methods together
Konstantin Baierer a65caa4d25 🎨 unncesssary if True
Konstantin Baierer 68d5c0d523 remove unused return_hor_spliter_by_index_for_without_verticals
Konstantin Baierer 35838069fc remove unused filter_contours_area_of_image_interiors
Konstantin Baierer e2ae6dbd44 remove unused find_features_of_contours
Konstantin Baierer 823592126e remove unused return_bonding_box_of_contours
Konstantin Baierer 9454a921b1 remove unused return_contours_of_interested_region_and_bounding_box
Konstantin Baierer 732a27fe77 remove unused variables
Konstantin Baierer f96a9c52d1 uniform coords calculation
Konstantin Baierer 6d476230ce remove unnecessary (hope so) try-except
Konstantin Baierer 23e97a5e0b factor out add_textequiv
Konstantin Baierer b3dd6685e7 sys.exit not necessary
Konstantin Baierer 461d3e31cf Merge remote-tracking branch 'origin/refactor-cntd' into ocrd-cli
Konstantin Baierer 48d8406fba remove unncessary try-except, formatting
vahidrezanezhad 881e2787ab
resolving issue with None num_col
Konstantin Baierer 4480302b53 write_into_page.*: use one variable name only
Konstantin Baierer 5f04fc7137 move the two xml serialization methods next to each other
Konstantin Baierer fdbcfe44a0 🎨 simplify
Konstantin Baierer bfb6e77db1 factor out reading order code, simplify
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 70d0b985a9 cli: add a --log-level option
Konstantin Baierer ca23b32e9b split do_order_of_regions, lots of logging
Konstantin Baierer 8cd4067fc5 cli: add negative flag variants (--no/-no)