Skip to content

Releases

5.5.5

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

5.5.4

Choose a tag to compare

@stweil stweil released this 28 Oct 11:19
5.5.4

What's Changed

This release fixes 17 security advisories and several smaller issues.
In addition, it provides some smaller updates and improvements:

  • fix build of training tool on windows with VS2022: by @zdenop in #4590
  • arch,viewer: add missing and by @tachalorah in #4592
  • Fix recursive static initialization in SIMDDetect::GetDetector() by @stweil with @Copilot in #4598
  • exports GetDetector() from the tesseract DLL, so linker can resolve it. by @zdenop in #4602
  • Fix two \param names that refer to the member, not the argument by @darkdi in #4594
  • Add new GitHub workflow which checks commits in a pull request by @stweil in #4604
  • Build unit tests without training tools by @stweil in #4596
  • docs: update dead Tesseract training docs link by @yzxcj797 in #4605
  • Fix several high and medium priority issues reported by Coverity Scan by @stweil in #4597
  • Fix Coverity warnings by @stweil in #4606
  • Avoid quadratic paragraph restart scan by @ilkecan in #4599
  • Bump actions/checkout from 4 to 7 by @dependabot[bot] in #4607
  • Fix GitHub AI findings from 'Security and quality' by @stweil in #4613
  • Fix inefficient empty string test in ScrollView menus by @stweil in #4612
  • Fix some issues reported by Coverity by @stweil in #4611
  • fix: prevent out-of-bounds read in UNICHAR::UTF8ToUTF32 by @SomSamantray in #4609
  • fix: prevent out-of-bounds access on truncated UTF-8 strings and crafted index maps by @stweil in #4617
  • Avoid redundant result iterator restarts by @ilkecan in #4601
  • fix: potential memory leak by @y1lan in #4622
  • Avoid float overflow for unclassified-word certainty by @stweil in #4630
  • Reject int-mode weight matrices with zero inputs in the deserializer by @stweil in #4644
  • Fix position-dependent paragraph bounding box by @stweil in #4632
  • Reject negative/oversized class ids in legacy inttemp by @stweil in #4640
  • Exit child process when execvp fails by @Ramya-9353 in #4577
  • Neutralise file-sourced pointers in ReadAdaptedClass before use by @stweil in #4645
  • Fix Devanagari font download URL by @SKSavale in #4654
  • cmake: allow unit tests to use installed GoogleTest by @manduinca in #4650
  • Reject malformed dimensions in GENERIC_2D_ARRAY deserialization by @stweil in #4649
  • ccstruct: fix leak of orphaned outline cycles in EliminateDuplicateOutlines by @stweil in #4655
  • Fix double-free/UAF in AppendLinePolygon for RTL PAGE XML output by @stweil in #4647
  • wordrec: bound seam search to prevent timeouts on degenerate input by @stweil in #4656
  • lstm: reject old-format WeightMatrix instead of aborting by @stweil in #4657
  • wordrec: add a per-pass seam search budget to bound many-word timeouts by @stweil in #4659
  • Reject out-of-range null_char in LSTM model load by @stweil in #4642
  • Harden class-id handling in the int/adaptive classifier by @stweil in #4639
  • Reject int-mode weight matrices with a short scale vector by @stweil in #4641
  • Reject a recoder whose code range exceeds the network output count by @stweil in #4643
  • Skip unit tests when their traineddata model is missing by @stweil in #4646
  • nsis: rewrite winpath helper without a fixed-size buffer by @stweil in #4661
  • Fix C++17 build of constexpr FCOORD operators by @stweil in #4665
  • Fix use-after-free in ReplaceCurrentWord with several languages by @mardgez in #4667

New Contributors

Full Changelog: 5.5.3...5.5.4

5.5.3

Choose a tag to compare

@stweil stweil released this 24 Jul 18:33
5.5.3

What's Changed

This release fixes two security advisories and several smaller issues.
In addition, it provides some smaller updates and improvements:

New Contributors

Full Changelog: 5.5.2...5.5.3

5.5.2

Choose a tag to compare

@stweil stweil released this 26 Dec 17:32
5.5.2

What's Changed

New Contributors

Full Changelog: 5.5.1...5.5.2

5.5.1

Choose a tag to compare

@stweil stweil released this 25 May 09:53
5.5.1

What's Changed

  • Fix linear congruential random number generator by @stweil in #4357
  • Make list classes templated by @egorpugin in #4356
  • add cli -c parameter(s) to init vectors by @zdenop in #4363
  • handle colormaps correctly by @zdenop in #4369
  • use constexpr for kDawgMagicNumber by @zdenop in #4378
  • Extend elf_aux_info() support for RISC-V on FreeBSD and OpenBSD by @brad0 in #4376
  • Fix building elf_aux_info() support on OpenBSD/arm by @brad0 in #4383
  • Fix invalid empty interval in punct_stripped() for all-punctuation words by @EnodoGH in #4404
  • Fix function addAvailableLanguages (issue #4416) by @stweil in #4417
  • Avoid error in pixSauvolaBinarizeTiled (issue #4390) by @stweil in #4418
  • Fix duplicated IDs in ALTO XML when multiple pages are present by @jankal in #4386
  • Remove unused include statements for tprintf.h by @stweil in #4419
  • Use links to the git history and online release notes instead of local ChangeLog by @stweil in #4423

New Contributors

Full Changelog: 5.5.0...5.5.1

5.5.0

Choose a tag to compare

@stweil stweil released this 10 Nov 19:29
5.5.0

What's Changed

  • Fix TARGET_PDB_FILE error for static linking. by @hglee in #4271
  • Make regular usage of CMAKE_INSTALL_LIBDIR and GNUInstallDirs by @Zopolis4 in #4272
  • Ignore illegal TESSDATA_PREFIX (not existing filesystem entry, issue #4277) by @stweil in #4278
  • Fix confidence output for the PAGE XML renderer by @JKamlah in #4283
  • Set hOCR capabilities ocrp_dir and ocrp_lang unconditionally by @stweil in #4301
  • Reduce clock syscalls by @heshpdx in #4303
  • Calculate row bounding box in single-word mode per #4304 by @Balearica in #4305
  • Replace access/_access by std::filesystem::exists by @stweil in #4307
  • Modernize code for list of available models by @stweil in #4308
  • Fix performance and other issues reported by Codacy by @stweil in #4309
  • Remove unnecessary assignment and assertions by @stweil in #4313
  • Update code for tprintf by @stweil in #4306
  • Add C++ stream for log messages and use it in two debug messages by @stweil in #4314
  • cmake: Correctly set the soversion based on SemVer properties by @Conan-Kudo in #4319
  • Replace deprecated runner macos-12 by macos-latest in GitHub actions by @stweil in #4326
  • Modernize code for renderers and remove filename conversion for Windows by @stweil in #4330
  • Fix some typos and grammer issues by @stweil in #4337
  • Add GitHub action and Makefile target for Windows installer by @stweil in #4341
  • Support symbolic values for --oem and --psm options by @stweil in #4344
  • Replace some tprintf by tesserr stream (fixes Windows compiler warnings) by @stweil in #4345
  • Add RISC-V V support #4346
  • Fix and improve Windows installer by @stweil in #4348
  • Remove Tensorflow support by @stweil in #4350
  • Update submodule googletest to release v1.15.2 by @stweil in #4352

New Contributors

Full Changelog: 5.4.1...5.5.0

5.4.1

Choose a tag to compare

@stweil stweil released this 11 Jun 18:25
5.4.1

What's Changed

This release fixes a regression with legacy or mixed models (issue #4257).

Full Changelog: 5.4.0...5.4.1

5.4.0

Choose a tag to compare

@stweil stweil released this 06 Jun 13:35
5.4.0

What's Changed

This releases provides an improved PDF renderer, adds a new PAGE XML renderer, extends the API to retrieve the text angle/gradient and has lots of smaller updates for code and documentation:

New Contributors

Full Changelog: 5.3.4...5.4.0

5.4.0-rc2

5.4.0-rc2 Pre-release
Pre-release

Choose a tag to compare

@stweil stweil released this 19 May 10:02
5.4.0-rc2

What's Changed

  • Fix setup of datadir on installations with Conda (issue #4230) by @stweil in #4240
  • Fix FP exception in Wordrec::angle_change (issue #4242) by @stweil in #4243
  • Update sw.yml

Full Changelog: 5.4.0-rc1...5.4.0-rc2

5.4.0-rc1

5.4.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@stweil stweil released this 12 May 13:46
5.4.0-rc1

What's Changed

This releases provides an improved PDF renderer, adds a new PAGE XML renderer, extends the API to retrieve the text angle/gradient and has lots of smaller updates for code and documentation:

New Contributors

Full Changelog: 5.3.4...5.4.0-rc1