Commit graph

  • df3510750c
    Github Actions CI: no more Docker clean or build Robert Sachunsky 2025-04-01 00:28:16 +02:00
  • 45e3ab9692
    Github Actions: free space: all existing Docker images Robert Sachunsky 2025-04-01 00:23:53 +02:00
  • 4de441eaaa OCR prediction is now enabled to integrate results from both RGB and binarized images or to be performed on each individually vahidrezanezhad 2025-03-31 21:28:05 +02:00
  • b1da0a3327 In OCR, the predicted text is now drawn on the image, and the results are saved in a specified directory. This makes it easier to review the predicted output vahidrezanezhad 2025-03-31 18:43:14 +02:00
  • 31aeb9629d
    Github Actions: free space more aggressively Robert Sachunsky 2025-03-31 18:16:17 +02:00
  • 7430b57b65 dockerfile: add smoke test Robert Sachunsky 2025-03-31 16:56:47 +02:00
  • f35f49376e run CLI test in TMPDIR, add ocrd-test Robert Sachunsky 2025-03-31 16:55:57 +02:00
  • ae066388ea docker: no need for g++, but install w/ 'EXTRAS=OCR' Robert Sachunsky 2025-03-31 15:58:57 +02:00
  • 722b5c6bf1 add make variable EXTRAS for optional dependencies Robert Sachunsky 2025-03-31 15:58:12 +02:00
  • c01609ff4e allow even more empty imports for optional dependencies Robert Sachunsky 2025-03-31 15:57:22 +02:00
  • 51e9bfd6d7 improve+extend dockerfile Robert Sachunsky 2025-03-31 14:14:08 +02:00
  • 09248d4829 improve+extend makefile Robert Sachunsky 2025-03-31 14:13:16 +02:00
  • 46618f4229 allow more empty imports for optional dependencies Robert Sachunsky 2025-03-31 14:11:50 +02:00
  • 4be89910a2 CLI: fix arg vs kwarg from merge Robert Sachunsky 2025-03-31 02:38:24 +02:00
  • 9d61acf173 simplify Robert Sachunsky 2025-03-31 02:02:30 +02:00
  • a1068ff2eb OCR-D: move sbb-binarize to ocrd-tool.json, update to v3 Robert Sachunsky 2025-03-31 01:47:32 +02:00
  • c794d4d29f OCR-D: fix typo light_mode→light_version Robert Sachunsky 2025-03-31 01:46:29 +02:00
  • 4338259ca1 OCR-D: ensure page image gets replaced in result as well if not the original file Robert Sachunsky 2025-03-31 01:17:14 +02:00
  • 55969b0173 OCR-D: add docstring Robert Sachunsky 2025-03-31 01:15:26 +02:00
  • 3916474b8b OCR-D: require >=v3.1 Robert Sachunsky 2025-03-31 01:15:12 +02:00
  • 6d02e90570 OCR-D: restrict max_workers=1 Robert Sachunsky 2025-03-31 01:14:54 +02:00
  • efd3fa6775 allow empty imports for optional dependencies Robert Sachunsky 2025-03-31 00:32:26 +02:00
  • 238132e260 use 'image_filename' for pseudo-iteration outside 'dir_in' mode Robert Sachunsky 2025-03-31 00:31:49 +02:00
  • af4e2a4ffc do not require 'dir_out' outside 'dir_in' mode Robert Sachunsky 2025-03-31 00:31:09 +02:00
  • ea136e3ddd 'overwrite' check: only in 'dir_in' mode Robert Sachunsky 2025-03-31 00:30:06 +02:00
  • 1f4a17b60d Merge remote-tracking branch 'origin/machine_based_reading_order_integration' into v3-api Robert Sachunsky 2025-03-30 20:59:01 +02:00
  • edf924c2cb ocrd-tool: add dockerhub Robert Sachunsky 2025-03-30 19:47:25 +02:00
  • 9b04688ebc The rotate_image function has been updated. Additionally, the reading order is now correct in the case of the light version, provided that slope_deskew exceeds the slope_threshold. vahidrezanezhad 2025-03-30 15:34:27 +02:00
  • cf40f9ecc5 The rotate_image function produces the exact same rotation as Imutils. Therefore, there is no need to retain the remove-imutils-1 branch. vahidrezanezhad 2025-03-28 20:58:32 +01:00
  • b55389ac62
    Update requirements.txt vahidrezanezhad 2025-03-28 14:59:31 +01:00
  • 8bf70d905f
    Merge pull request #147 from qurator-spk/revert-146-remove-imutils-1 vahidrezanezhad 2025-03-28 14:58:04 +01:00
  • f756b08c9b
    Revert "replace usages of imutils with opencv equivalents" vahidrezanezhad 2025-03-28 14:57:40 +01:00
  • c9de578d4d removing imutils from requirements vahidrezanezhad 2025-03-28 11:25:03 +01:00
  • 52c605185a
    Merge pull request #146 from qurator-spk/remove-imutils-1 vahidrezanezhad 2025-03-28 11:10:25 +01:00
  • 0e9a72ea52 consolidate usage documentation cneud 2025-03-27 23:14:59 +01:00
  • 3a55b6ce91 consolidate usage documentation cneud 2025-03-27 23:11:18 +01:00
  • e9fa691308 add model and training documentation cneud 2025-03-27 22:41:10 +01:00
  • 6f36c7177f For OCR, the splitting ratio of text lines is adjusted vahidrezanezhad 2025-03-27 18:24:47 +01:00
  • 181c0c584f bbox rotation with opencv cneud 2025-03-26 22:25:22 +01:00
  • eaff9e3537 Merge branch 'main' into remove-imutils-1 cneud 2025-03-26 20:16:46 +01:00
  • 7df0427b04 In the context of OCR, if Page-XML files already contain text, the new predicted text will replace the existing text. vahidrezanezhad 2025-03-26 18:42:06 +01:00
  • 370d44a66b Slope deskew in the light version is set to zero because when the slope_deskew value exceeds the slope_threshold, the reading order becomes incorrect. This issue needs to be addressed. Additionally, the textlines order within text region in the light version was reversed, and this has been corrected. vahidrezanezhad 2025-03-26 10:45:34 +01:00
  • 005b6988f4
    Merge pull request #140 from qurator-spk/machine_based_reading_order_integration Clemens Neudecker 2025-03-25 11:00:44 +01:00
  • 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. vahidrezanezhad 2025-03-20 18:21:44 +01:00
  • 363c343b37 visualising reaidng order- Overlaying on image is provided vahidrezanezhad 2025-03-17 20:09:48 +01:00
  • c8b8529951 For the CNN-RNN OCR model, long text lines are split into two segments vahidrezanezhad 2025-03-17 19:50:58 +01:00
  • 90a1b186f7 this enables to visualize reading order of textregions provided in page-xml files vahidrezanezhad 2025-03-14 17:20:33 +01:00
  • aa72ca3006 Resolved an issue in the OCR-D framework where dir_out received a None value vahidrezanezhad 2025-03-13 15:02:38 +01:00
  • a4f1f35125 Resolving test failure vahidrezanezhad 2025-03-07 13:19:56 +01:00
  • 54040c1db4 Merge remote-tracking branch 'bertsky/machine_based_reading_order_integration_fixes' into machine_based_reading_order_integration kba 2025-03-06 15:48:52 +01:00
  • 0b2c1b9275 remove imutils dependency cneud 2025-03-03 22:21:57 +01:00
  • 687aba1fa2
    replace usages of imutils with opencv equivalents Clemens Neudecker 2025-03-03 22:10:40 +01:00
  • 7110bd971f resolved an error for light version in the case that slope_deskew is smaller than slope_threshold vahidrezanezhad 2025-02-27 19:11:15 +01:00
  • 25116a2c79 resolved 2 errors vahidrezanezhad 2025-02-19 00:35:48 +01:00
  • 869110f185 merge main kba 2025-01-20 14:45:27 +01:00
  • 33fda2f8be changing cnn ocr model name vahidrezanezhad 2024-12-26 22:45:40 +01:00
  • 335aa273a1 simplify, wrap extremely long lines Robert Sachunsky 2024-12-23 03:13:21 +00:00
  • cfc65128b1 reduce redundancy/indentation Robert Sachunsky 2024-12-22 14:56:32 +00:00
  • 01376af905 do_order_of_regions_with_model: simplify Robert Sachunsky 2024-12-22 13:10:05 +00:00
  • 92bfac4b41 Provide OCR as an option to process a directory of XML files, incorporating layout and text line coordinates. vahidrezanezhad 2024-12-20 15:47:21 +01:00
  • fbeef79d50 adding scatter_nd inference vahidrezanezhad 2024-12-16 01:11:54 +01:00
  • 0ae28f7d3e switch from stdlib to loky.ProcessPoolExecutor, ensure shutdown Robert Sachunsky 2024-12-14 12:15:56 +00:00
  • f93c6c288d function of patch-wise inference with scatter_nd is added vahidrezanezhad 2024-12-14 02:50:17 +01:00
  • 0e8c561618 debugging issues vahidrezanezhad 2024-12-14 00:24:29 +01:00
  • e9c0d716f6 CI: install optional dependencies, too Robert Sachunsky 2024-12-11 23:48:56 +00:00
  • dcaf796283 change polarity of orientation angle (PAGE schema required cw=positive) Robert Sachunsky 2024-12-11 23:07:56 +00:00
  • b4b0890294 add option to overwrite output xml, but skip by default if file exists Robert Sachunsky 2024-12-11 18:45:18 +00:00
  • b9ca7a6191 log num_cols-dependent resizing Robert Sachunsky 2024-12-11 18:44:54 +00:00
  • 9270ea4550 annotate region angles in PAGE Robert Sachunsky 2024-12-11 18:37:20 +00:00
  • 3b70b11ea6 avoid deskewing patches if binary-empty Robert Sachunsky 2024-12-11 18:36:20 +00:00
  • 7e9ee90e6e switch from (ad-hoc) mp.Pool to (attribute) concurrent.futures.ProcessPoolExecutor Robert Sachunsky 2024-12-11 12:18:29 +00:00
  • 68456ea002 do_work_of_slopes_new*, do_back_rotation_and_get_cnt_back, do_work_of_contours_in_image: use mp.Pool, simplify Robert Sachunsky 2024-12-11 11:30:38 +00:00
  • 25e967397d exit early if no text regions found (to avoid segfault) Robert Sachunsky 2024-12-11 11:24:56 +00:00
  • 21efea8711 no del on function argument Robert Sachunsky 2024-12-11 18:36:57 +00:00
  • 5e0c1da711 simplify Robert Sachunsky 2024-12-11 00:18:58 +00:00
  • 54cb15056b do_image_rotation / return_deskew_slop: avoid code duplication, simplify via mp.Pool Robert Sachunsky 2024-12-09 16:37:34 +00:00
  • 6fe02df973 do_image_rotation: fix f93fa12 (do return results) Robert Sachunsky 2024-12-09 16:35:31 +00:00
  • d68017037c do_prediction: trigger GC to avoid CUDA OOM Robert Sachunsky 2024-12-09 11:27:11 +00:00
  • ad748d0039 do_prediction: avoid code duplication Robert Sachunsky 2024-12-09 10:55:41 +00:00
  • c3163caefd avoid indentation Robert Sachunsky 2024-12-05 14:28:17 +00:00
  • 055463d23a avoid indentation Robert Sachunsky 2024-12-05 09:43:30 +00:00
  • aaea2ef463 simplify Robert Sachunsky 2024-12-05 09:40:02 +00:00
  • 3d88b207fc run: log instead of print Robert Sachunsky 2024-12-05 09:39:55 +00:00
  • a520bd1f77 wrap extremely long lines Robert Sachunsky 2024-12-04 22:49:34 +00:00
  • cd4e426977 avoid indentation (skip_layout_and_reading_order) Robert Sachunsky 2024-12-04 22:11:34 +00:00
  • 5b82320707 avoid indentation Robert Sachunsky 2024-12-04 22:09:32 +00:00
  • 9f12fa241d log-level: only set 'eynollah' logger level Robert Sachunsky 2024-12-04 22:09:15 +00:00
  • 14beb46224 simplify loading models w/o dir_in mode Robert Sachunsky 2024-12-04 21:07:26 +00:00
  • 329fac23f6 do not reload enhancement model in dir_in mode, simplify Robert Sachunsky 2024-12-04 18:29:49 +00:00
  • 3b9a29bc5c simplify dir_in conditionals Robert Sachunsky 2024-12-04 18:19:54 +00:00
  • 7ae64f3717 RO model: do not reload when in dir_in mode Robert Sachunsky 2024-12-04 16:18:35 +00:00
  • f765e2603b move Torch to optional dependencies (to avoid clash with TF over CuDNN) Robert Sachunsky 2024-12-04 15:57:13 +00:00
  • 871d7bfc5a fixed: machine based reading order cause tuple index out of range error if number of textregion is one. vahidrezanezhad 2024-12-04 16:41:00 +01:00
  • 6aad006f4c filter textregions without textline vahidrezanezhad 2024-12-02 12:43:57 +01:00
  • 1083d1c7fb gha: try to free disk space kba 2024-11-25 19:32:42 +01:00
  • 8014a9e416
    Update Makefile vahidrezanezhad 2024-11-22 19:47:06 +01:00
  • 3000255a24
    Update Makefile vahidrezanezhad 2024-11-22 12:40:21 +01:00
  • 1746920275
    Update Makefile vahidrezanezhad 2024-11-21 12:08:29 +01:00
  • b622494f34 new table detection model is integrated vahidrezanezhad 2024-11-21 02:16:22 +01:00
  • e9b860b275 artificial_class_label for table region vahidrezanezhad 2024-11-18 16:34:53 +01:00