Commit graph

657 commits

Author SHA1 Message Date
Robert Sachunsky
c01609ff4e allow even more empty imports for optional dependencies 2025-03-31 15:57:22 +02:00
Robert Sachunsky
51e9bfd6d7 improve+extend dockerfile 2025-03-31 14:14:08 +02:00
Robert Sachunsky
09248d4829 improve+extend makefile 2025-03-31 14:13:16 +02:00
Robert Sachunsky
46618f4229 allow more empty imports for optional dependencies 2025-03-31 14:11:50 +02:00
Robert Sachunsky
4be89910a2 CLI: fix arg vs kwarg from merge 2025-03-31 02:38:24 +02:00
Robert Sachunsky
9d61acf173 simplify 2025-03-31 02:02:30 +02:00
Robert Sachunsky
a1068ff2eb OCR-D: move sbb-binarize to ocrd-tool.json, update to v3 2025-03-31 01:47:32 +02:00
Robert Sachunsky
c794d4d29f OCR-D: fix typo light_mode→light_version 2025-03-31 01:46:29 +02:00
Robert Sachunsky
4338259ca1 OCR-D: ensure page image gets replaced in result as well if not the original file 2025-03-31 01:17:14 +02:00
Robert Sachunsky
55969b0173 OCR-D: add docstring 2025-03-31 01:15:26 +02:00
Robert Sachunsky
3916474b8b OCR-D: require >=v3.1 2025-03-31 01:15:12 +02:00
Robert Sachunsky
6d02e90570 OCR-D: restrict max_workers=1 2025-03-31 01:14:54 +02:00
Robert Sachunsky
efd3fa6775 allow empty imports for optional dependencies 2025-03-31 00:32:26 +02:00
Robert Sachunsky
238132e260 use 'image_filename' for pseudo-iteration outside 'dir_in' mode 2025-03-31 00:31:49 +02:00
Robert Sachunsky
af4e2a4ffc do not require 'dir_out' outside 'dir_in' mode 2025-03-31 00:31:09 +02:00
Robert Sachunsky
ea136e3ddd 'overwrite' check: only in 'dir_in' mode 2025-03-31 00:30:06 +02:00
Robert Sachunsky
1f4a17b60d Merge remote-tracking branch 'origin/machine_based_reading_order_integration' into v3-api 2025-03-30 21:21:59 +02:00
Robert Sachunsky
edf924c2cb ocrd-tool: add dockerhub 2025-03-30 19:47:25 +02:00
vahidrezanezhad
d3a4c06e7f This commit enables the export of cropped text line images along with their corresponding texts from a Page-XML file. These exported text line images and texts can be utilized for training a text line-based OCR model. 2025-03-20 18:21:44 +01:00
vahidrezanezhad
c8b8529951 For the CNN-RNN OCR model, long text lines are split into two segments 2025-03-17 19:50:58 +01:00
vahidrezanezhad
aa72ca3006 Resolved an issue in the OCR-D framework where dir_out received a None value 2025-03-13 15:02:38 +01:00
vahidrezanezhad
a4f1f35125 Resolving test failure 2025-03-07 13:19:56 +01:00
kba
54040c1db4 Merge remote-tracking branch 'bertsky/machine_based_reading_order_integration_fixes' into machine_based_reading_order_integration 2025-03-06 15:48:52 +01:00
vahidrezanezhad
7110bd971f resolved an error for light version in the case that slope_deskew is smaller than slope_threshold 2025-02-27 19:11:15 +01:00
vahidrezanezhad
25116a2c79 resolved 2 errors 2025-02-19 00:35:48 +01:00
kba
869110f185 merge main 2025-01-20 14:45:27 +01:00
vahidrezanezhad
33fda2f8be changing cnn ocr model name 2024-12-26 22:45:40 +01:00
Robert Sachunsky
335aa273a1 simplify, wrap extremely long lines 2024-12-23 13:36:29 +00:00
Robert Sachunsky
cfc65128b1 reduce redundancy/indentation 2024-12-22 14:56:32 +00:00
Robert Sachunsky
01376af905 do_order_of_regions_with_model: simplify 2024-12-22 13:10:05 +00:00
vahidrezanezhad
92bfac4b41 Provide OCR as an option to process a directory of XML files, incorporating layout and text line coordinates. 2024-12-20 15:47:21 +01:00
vahidrezanezhad
fbeef79d50 adding scatter_nd inference 2024-12-16 01:11:54 +01:00
Robert Sachunsky
0ae28f7d3e switch from stdlib to loky.ProcessPoolExecutor, ensure shutdown 2024-12-14 12:16:29 +00:00
vahidrezanezhad
f93c6c288d function of patch-wise inference with scatter_nd is added 2024-12-14 02:50:17 +01:00
vahidrezanezhad
0e8c561618 debugging issues 2024-12-14 00:24:29 +01:00
Robert Sachunsky
e9c0d716f6 CI: install optional dependencies, too 2024-12-11 23:48:56 +00:00
Robert Sachunsky
dcaf796283 change polarity of orientation angle (PAGE schema required cw=positive) 2024-12-11 23:07:56 +00:00
Robert Sachunsky
b4b0890294 add option to overwrite output xml, but skip by default if file exists 2024-12-11 19:52:21 +00:00
Robert Sachunsky
b9ca7a6191 log num_cols-dependent resizing 2024-12-11 18:48:26 +00:00
Robert Sachunsky
9270ea4550 annotate region angles in PAGE 2024-12-11 18:48:26 +00:00
Robert Sachunsky
3b70b11ea6 avoid deskewing patches if binary-empty 2024-12-11 18:48:26 +00:00
Robert Sachunsky
7e9ee90e6e switch from (ad-hoc) mp.Pool to (attribute) concurrent.futures.ProcessPoolExecutor 2024-12-11 18:48:26 +00:00
Robert Sachunsky
68456ea002 do_work_of_slopes_new*, do_back_rotation_and_get_cnt_back, do_work_of_contours_in_image: use mp.Pool, simplify 2024-12-11 18:48:26 +00:00
Robert Sachunsky
25e967397d exit early if no text regions found (to avoid segfault) 2024-12-11 18:48:26 +00:00
Robert Sachunsky
21efea8711 no del on function argument 2024-12-11 18:48:26 +00:00
Robert Sachunsky
5e0c1da711 simplify 2024-12-11 00:18:58 +00:00
Robert Sachunsky
54cb15056b do_image_rotation / return_deskew_slop: avoid code duplication, simplify via mp.Pool 2024-12-10 09:52:32 +00:00
Robert Sachunsky
6fe02df973 do_image_rotation: fix f93fa12 (do return results) 2024-12-09 16:35:31 +00:00
Robert Sachunsky
d68017037c do_prediction: trigger GC to avoid CUDA OOM 2024-12-09 11:27:11 +00:00
Robert Sachunsky
ad748d0039 do_prediction: avoid code duplication 2024-12-09 10:55:41 +00:00