Skip to content

5.5.5

Latest

Choose a tag to compare

@stweil stweil released this 26 Nov 17:23
5.5.5

What's Changed

This release fixes nine security advisories and many crashes, endless loops and timeouts with crafted images or model files.

Other notable changes:

  • The layout analysis finds more text: text inside a scan border, between leaders and at the edge of the image, small words between lines of very large text, and rows made from two columns.
  • PDF files get a valid ToUnicode CMap, and two cases of invalid PAGE XML output are fixed.
  • The LSTM code is faster with more SIMD functions for ARM64 and x86_64.
  • New and off by default: multi-column (newspaper) pages can be recognized column by column (-c textord_auto_columns=1), and bold, italic and underlined words are estimated for the LSTM engine (-c lstm_font_attributes=1) and written to hOCR, ALTO and PAGE output.

In addition, it provides some smaller updates and improvements:

  • serialis: require declared sizes to be backed by remaining bytes by @stweil in #4675
  • Validate Plumbing child dimensions during deserialization by @professor-moody in #4671
  • lstm: don't cap legitimate inference buffers in ResizeNoInit by @stweil in #4674
  • Fix exit code when no renderers could be created by @VishnuSrivatsava in #4669
  • Add error checking for elf_aux_info() by @brad0 in #4637
  • Validate the LSTM softmax child runtime type during deserialization by @professor-moody in #4670
  • wordrec: add a per-page blob classification budget to bound classifier timeouts by @stweil in #4679
  • SECURITY: steer vulnerability reports to GitHub's private reporting by @stweil in #4684
  • Fix ALTO output file name in tesseract man page example by @NotAFlightRisk in #4686
  • fuzzer: delete the API on exit and include cstdint by @stweil in #4685
  • Make DetectOS fail without a legacy model instead of throwing by @sohailshk in #4682
  • Clip the SetRectangle rectangle to the image by @sohailshk in #4683
  • unittest: use separate temporary directories for the LSTM trainer tests by @stweil in #4702
  • Fix download of ae_Arab.ttf for the unit tests by @stweil in #4687
  • Fix crash in Recognize when no language was loaded by @sohailshk in #4681
  • serialis: remove the size limit for strings and byte vectors by @stweil in #4703
  • CI: replace the retired macos-14 runner and build with GCC on macOS by @stweil in #4705
  • Fix stats performance by @stweil in #4688
  • trie: index the back links of the root node by @stweil in #4689
  • Fix dawg robustness by @stweil in #4690
  • Fix lstm misc by @stweil in #4691
  • Fix lstm fp range by @stweil in #4692
  • Fix training tools by @stweil in #4693
  • api: run the recognition if only the layout analysis was done by @stweil in #4694
  • Fix param robustness by @stweil in #4695
  • equationdetect: fix the comparators which are used for std::sort by @stweil in #4697
  • ccmain: fix read out of bounds in PrerecAllWordsPar for an empty word by @stweil in #4698
  • Fix classify robustness by @stweil in #4699
  • Fix gapmap bounds by @stweil in #4700
  • textord: skip the distance transform for blobs with a huge box by @stweil in #4701
  • Fix api renderers by @stweil in #4696
  • Add a placeholder for a dropout layer by @stweil in #4704
  • Speed up the LSTM code with more SIMD functions for ARM64 and x86_64 by @stweil in #4706
  • Fixed the GetUTF8Text method to return nullptr instead of asserting by @zdenop in #4451
  • fix: link the autotools shared library to Accelerate by @mvanhorn in #4636
  • Fix two cases of invalid PAGE XML output by @stweil in #4713
  • Fix IsSpaceDelimited for characters with the null script by @stweil in #4710
  • Fix crash when training continues with a new character set by @stweil in #4715
  • Write font attributes in ALTO and PAGE output by @stweil in #4714
  • Estimate bold and italic for words recognized by LSTM by @stweil in #4712
  • Fix inconsistent recognition_done_ state on empty pages by @eyupcanakman in #4528
  • Restart rows and paragraphs from the current block by @ilkecan in #4721
  • Layout analysis: find text inside a scan border, between leaders and at the image edge by @stweil in #4720
  • Don't reject a row made from two columns as noise by @stweil in #4724
  • Merge the partitions of a table in pairs by @stweil in #4725
  • Fix memory leak in MakeRowFromSubBlobs by @stweil in #4726
  • Find underlined words recognized by LSTM by @stweil in #4722
  • Don't clip the pixels of the image for int models by @stweil in #4727
  • Recognize small words between lines of very large text by @stweil in #4719
  • Recognise multi-column (newspaper) pages column by column by @stweil in #4723
  • Add fuzzer for raw images with layout analysis and thresholding by @stweil in #4728
  • CI: allow manual runs of two unit test workflows and avoid font downloads by @stweil in #4730
  • sw: compile functionsavx2.cpp with AVX2 by @stweil in #4729
  • Write a valid ToUnicode CMap for the glyphless PDF font by @stweil in #4732

New Contributors

Full Changelog: 5.5.4...5.5.5