Commit graph

  • 142ac8825e use box2rect instead of crop_image_inside_box when no image needed Robert Sachunsky 2025-08-26 21:02:43 +02:00
  • 892ff41e38 utils: introduce box2rect and box2slice Robert Sachunsky 2025-08-26 21:00:33 +02:00
  • d3566e55ef polygon2contour: fix 698f38e4 (deprecated dtype) Robert Sachunsky 2025-08-29 17:21:08 +02:00
  • 741aa7867c get_marginals: exit early if no peaks found to avoid spurious overlap mask Robert Sachunsky 2025-08-29 12:37:44 +02:00
  • 57821662b9 filter_contours_without_textline_inside: avoid removing from identical lists twice Robert Sachunsky 2025-08-29 12:19:37 +02:00
  • 698f38e461 polygon2contour: avoid overflow Robert Sachunsky 2025-08-29 12:16:56 +02:00
  • 9b9d21d8ac eynollah ocr: support using either a specific model name or a models directory (default model) vahidrezanezhad 2025-08-28 11:30:59 +02:00
  • fdcae8dd6e eynollah ocr: support using either a specific model name or a models directory (default model) vahidrezanezhad 2025-08-28 11:30:59 +02:00
  • 41365645ef Marginals are divided into left and right, and written from top to bottom. vahidrezanezhad 2025-08-26 22:38:03 +02:00
  • 7dd281267d Marginals are divided into left and right, and written from top to bottom. vahidrezanezhad 2025-08-26 22:38:03 +02:00
  • fd6a6495a2 increase dilatation: textregions/lines (5→6), seplines (0→1) Robert Sachunsky 2025-08-21 13:00:31 +02:00
  • 8be52fb143 refactor shapely converisons into contour2polygon / polygon2contour, also handle heterogeneous geometries Robert Sachunsky 2025-08-21 12:59:03 +02:00
  • 8b5f90e243 move dilate_*_contours to .utils.contour, rename dilate_textregions_contours_textline_version → dilate_textline_contours Robert Sachunsky 2025-08-21 01:42:46 +02:00
  • 244772f086 filter_contours_area_of_image*: also ensure validity here Robert Sachunsky 2025-08-21 01:33:16 +02:00
  • 42474afa4b rename *lines_xml → *seplines for clarity Robert Sachunsky 2025-08-21 01:32:32 +02:00
  • b610fe07a6 check_any_text_region_in_model_one_is_main_or_header_light: return original instead of resampled contours Robert Sachunsky 2025-08-21 01:05:15 +02:00
  • 3d53070b90 avoid creating invalid polygons via rounding Robert Sachunsky 2025-08-21 01:03:46 +02:00
  • 277d00579e get_textregion_contours_in_org_image_light: no back rotation, drop slope_first (always 0) Robert Sachunsky 2025-08-20 14:28:14 +02:00
  • b6d1c43a85 dilate_textregions_contours_textline_version: simplify (via shapely's Polygon.buffer()), ensure validity Robert Sachunsky 2025-08-20 14:26:14 +02:00
  • 6c442c9ae9 separate_lines/do_work_of_slopes: skip if crop is empty Robert Sachunsky 2025-08-19 22:56:36 +02:00
  • e9a6ff5d81 return_boxes_of_images_by_order_of_reading_new: simplify, avoid changing dtype during np.append Robert Sachunsky 2025-08-19 20:09:09 +02:00
  • f994ea5f0b dilate_textregions_contours: simplify (via shapely's Polygon.buffer()), ensure validity Robert Sachunsky 2025-08-19 11:58:45 +02:00
  • 7741502876 reading order on given layout vahidrezanezhad 2025-08-18 02:31:13 +02:00
  • 8dc2fab9fa reading order on given layout vahidrezanezhad 2025-08-18 02:31:13 +02:00
  • 8ebba5ac04 add feedback to command line interface michalbubula 2025-08-12 16:21:15 +02:00
  • 268aa141d7 avoiding float in range vahidrezanezhad 2025-08-12 12:50:15 +02:00
  • 20614d1678 avoiding float in range vahidrezanezhad 2025-08-12 12:50:15 +02:00
  • cf4983da54 visualize vertical ocr text vertically vahidrezanezhad 2025-08-08 16:12:55 +02:00
  • 52d9cc9baf deskewing with faster multiprocessing vahidrezanezhad 2025-08-08 11:32:02 +02:00
  • 5db3e9fa64 deskewing with faster multiprocessing vahidrezanezhad 2025-08-08 11:32:02 +02:00
  • 263da755ef loading xmls with UTF-8 encoding vahidrezanezhad 2025-08-07 10:32:49 +02:00
  • 6462ea5b33 adding visualization of ocr text of xml file vahidrezanezhad 2025-08-06 22:33:42 +02:00
  • 322b04145f use the latest ocr model with balanced fraktur-antiqua training dataset vahidrezanezhad 2025-08-05 14:22:22 +02:00
  • a0c19c57be use the latest ocr model with balanced fraktur-antiqua training dataset vahidrezanezhad 2025-08-05 14:22:22 +02:00
  • 1b95f8f38d threshold for textline ocr + new ocr model vahidrezanezhad 2025-07-25 13:18:38 +02:00
  • 0803881f36 threshold for textline ocr + new ocr model vahidrezanezhad 2025-07-25 13:18:38 +02:00
  • 2996fc8b30
    Merge pull request #166 from qurator-spk/updating_readme_for_eynollah_use_cases-cli Clemens Neudecker 2025-07-24 15:30:57 +02:00
  • fd0595f920
    Update Makefile vahidrezanezhad 2025-07-24 13:52:38 +02:00
  • da141bb42e resolving tests error vahidrezanezhad 2025-07-23 16:44:17 +02:00
  • daa597dbaa should merged text for the whole page be written in xml? vahidrezanezhad 2025-07-21 14:50:05 +02:00
  • d968a306e4 should merged text for the whole page be written in xml? vahidrezanezhad 2025-07-21 14:50:05 +02:00
  • 673e67a847 update model names vahidrezanezhad 2025-07-21 10:54:20 +02:00
  • 920705c3b1 update model names vahidrezanezhad 2025-07-21 10:54:20 +02:00
  • fee40049cd ocr model renamed - image text font for ocr result is now using Charis-7.000 font (downloaded from here https://software.sil.org/charis/download/) vahidrezanezhad 2025-07-16 14:00:12 +02:00
  • e0f4a007e4 ocr model renamed - image text font for ocr result is now using Charis-7.000 font (downloaded from here https://software.sil.org/charis/download/) vahidrezanezhad 2025-07-16 14:00:12 +02:00
  • 04fead348f ocr: make sure that image height or width is not zero vahidrezanezhad 2025-07-03 15:24:52 +02:00
  • e54ebaa23e ocr: make sure that image height or width is not zero vahidrezanezhad 2025-07-03 15:24:52 +02:00
  • 53dd4b26a9 decorated with confidence value for cnnrnn ocr model vahidrezanezhad 2025-07-03 11:50:47 +02:00
  • 59ea493803 decorated with confidence value for cnnrnn ocr model vahidrezanezhad 2025-07-03 11:50:47 +02:00
  • 1b222594d6 Update README.md: how to train model using docker image vahidrezanezhad 2025-06-25 18:33:55 +02:00
  • f5a1d1a255 docker file to train model with desired cuda and cudnn vahidrezanezhad 2025-06-25 18:24:16 +02:00
  • 42a3cc2335 cv2pil: limit color depth on output imgs Robert Sachunsky 2025-06-13 01:21:25 +02:00
  • dadb879376 pil2cv: allow (and drop) alpha channels on input imgs Robert Sachunsky 2025-06-12 20:55:37 +02:00
  • 32889ef1e0 adapt binarization CLI according to #156 kba 2025-06-12 13:57:41 +02:00
  • 9b4e78c55c
    Fixed duplicate textline_light assignments (true and false) in the OCR-D framework for the Eynollah light version, which caused rectangles to be used instead of contours for textlines vahidrezanezhad 2025-06-11 18:57:08 +02:00
  • 0e7de52f5e Merge pull request #24 from johnlockejrr/unifying-training-models Clemens Neudecker 2025-06-03 09:00:56 +02:00
  • eb91000490 layout visualization updated vahidrezanezhad 2025-06-02 18:23:34 +02:00
  • f79af201ab Fix: Resolved OCR bug when text region type is undefined vahidrezanezhad 2025-06-02 18:21:33 +02:00
  • 065f1f9a93 Fix: Resolved OCR bug when text region type is undefined vahidrezanezhad 2025-06-02 18:21:33 +02:00
  • e26c4ab9b4 image enhancer updated vahidrezanezhad 2025-06-01 22:44:50 +02:00
  • 7996afac69 image enhancer updated vahidrezanezhad 2025-06-01 22:44:50 +02:00
  • 9342b76038 saving enhanced image in org or scaled resolution vahidrezanezhad 2025-06-01 22:10:13 +02:00
  • d14bd162ca saving enhanced image in org or scaled resolution vahidrezanezhad 2025-06-01 22:10:13 +02:00
  • 3b475915c7 image enhancer is integrated vahidrezanezhad 2025-06-01 15:53:04 +02:00
  • cc36694dfd image enhancer is integrated vahidrezanezhad 2025-06-01 15:53:04 +02:00
  • df903aa1b4 Parametrize OCR for handling curved lines vahidrezanezhad 2025-05-31 01:09:14 +02:00
  • 928a548b70 Parametrize OCR for handling curved lines vahidrezanezhad 2025-05-31 01:09:14 +02:00
  • 1e7cecfcf9 updating ocr vahidrezanezhad 2025-05-28 01:17:21 +02:00
  • 48285ce3f5 updating ocr vahidrezanezhad 2025-05-28 01:17:21 +02:00
  • 03f52e7a46 updating ocr vahidrezanezhad 2025-05-27 23:45:22 +02:00
  • b93fc112bf updating ocr vahidrezanezhad 2025-05-27 23:45:22 +02:00
  • 31d9fa0c80 strings alignment function is added + new changes needed for prediction with both bin and rgb inputs is implemented vahidrezanezhad 2025-05-25 21:44:36 +02:00
  • 0f154c605a strings alignment function is added + new changes needed for prediction with both bin and rgb inputs is implemented vahidrezanezhad 2025-05-25 21:44:36 +02:00
  • b18691f96a rnn ocr for all layout textregion types vahidrezanezhad 2025-05-25 03:33:54 +02:00
  • 097520bfd2 rnn ocr for all layout textregion types vahidrezanezhad 2025-05-25 03:33:54 +02:00
  • ba3420b2d8 Drop capitals are written separately and are not attached to their corresponding text line. The OCR use case also supports single-image input. vahidrezanezhad 2025-05-25 01:12:58 +02:00
  • 27c4b0d0e0 Drop capitals are written separately and are not attached to their corresponding text line. The OCR use case also supports single-image input. vahidrezanezhad 2025-05-25 01:12:58 +02:00
  • 25e3a2a99f visualizing ro for single xml file vahidrezanezhad 2025-05-23 18:30:51 +02:00
  • 0250a6d3d0 enhancing ocr vahidrezanezhad 2025-05-23 18:06:53 +02:00
  • adcf03c7b7 enhancing ocr vahidrezanezhad 2025-05-23 18:06:53 +02:00
  • 089029cec7 commit 21ec4fb is picked + rnn ocr at the same time with segmentation + enhancement of mb reading order vahidrezanezhad 2025-05-23 15:55:03 +02:00
  • d4f6e10251 commit 21ec4fb is picked + rnn ocr at the same time with segmentation + enhancement of mb reading order vahidrezanezhad 2025-05-23 15:55:03 +02:00
  • ee2c7e9013 enhancing curved lines OCR vahidrezanezhad 2025-05-21 17:42:44 +02:00
  • a0647eff93 enhancing curved lines OCR vahidrezanezhad 2025-05-21 17:42:44 +02:00
  • 14b70c2556 Implement hyphenated textline merging in OCR engine and a bug fixed for curved textline OCR vahidrezanezhad 2025-05-21 14:39:31 +02:00
  • f94fc9973b Implement hyphenated textline merging in OCR engine and a bug fixed for curved textline OCR vahidrezanezhad 2025-05-21 14:39:31 +02:00
  • 3ad621e956 ocr for curved lines vahidrezanezhad 2025-05-20 19:01:52 +02:00
  • c0835665a9 ocr for curved lines vahidrezanezhad 2025-05-20 19:01:52 +02:00
  • 44ff51f5c1 mb reading order now can be done faster. Text regions are clustered using dilation, and mb reading order needs to be implemented for fewer regions vahidrezanezhad 2025-05-20 16:51:08 +02:00
  • 848156dd9d mb reading order now can be done faster. Text regions are clustered using dilation, and mb reading order needs to be implemented for fewer regions vahidrezanezhad 2025-05-20 16:51:08 +02:00
  • 5016039cd7 enhancing marginal detection for light version vahidrezanezhad 2025-05-18 02:48:05 +02:00
  • 7a34bbb493 enhancing marginal detection for light version vahidrezanezhad 2025-05-18 02:48:05 +02:00
  • f298643fcf
    Fix ReduceONPlateau wrong logic johnlockejrr 2025-05-17 23:24:40 +03:00
  • 7661080899
    LR Warmup and Optimization Implementation johnlockejrr 2025-05-17 16:17:38 +03:00
  • f9390c71e7 updating inference for mb reading order vahidrezanezhad 2025-05-17 02:18:27 +02:00
  • 1cbc669d36 marginals detection enhanced for light version vahidrezanezhad 2025-05-15 15:33:50 +02:00
  • 0819730355 marginals detection enhanced for light version vahidrezanezhad 2025-05-15 15:33:50 +02:00
  • 1b229ba7ae enhancement for vertical textlines vahidrezanezhad 2025-05-15 00:45:22 +02:00
  • adee1dc55c enhancement for vertical textlines vahidrezanezhad 2025-05-15 00:45:22 +02:00
  • 7a22e51f5d resolve some comments from review cneud 2025-05-14 21:56:03 +02:00