# Tesseract.js v6.0.0 - Product: Tesseract.js (https://whatsnew.fyi/product/tesseract-js) - Vendor: naptha - Date: 2025-01-07 - Version: v6.0.0 - Original notes: https://github.com/naptha/tesseract.js/releases/tag/v6.0.0 - Permalink: https://whatsnew.fyi/product/tesseract-js/releases/v6.0.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Fixed memory leaks that caused memory to rise over time and eventually lead to crashes - **changed** — Reduced runtime and memory usage for most users by updating default formats - **fixed** — Fixed compatibility with Electron main process - **fixed** — Fixed bug where user-provided parameters were overwritten by defaults - **changed** — All output formats other than text are now disabled by default - **changed** — The JavaScript object output format (blocks) now returns only the array of blocks instead of automatically generating lists of words and symbols - **changed** — Only text-based blocks are reported, non-text blocks are no longer automatically reported - **changed** — The shape of some block objects was changed, with main properties text and bbox remaining unchanged - **removed** — Removed previously deprecated functions including worker.initialize and worker.loadLanguage ##### What's Changed - Fixed memory leaks (#977) - This version fixed a long-standing issue where memory would rise over time, eventually leading to a crash. - Reduced runtime and memory usage for most users by updating default formats (#916). - Fixed compatibility with Electron main process (#925) - Fixed bug where user-provided parameters were overwritten by defaults (#975). ###### Breaking Changes 1. All outputs formats other than `text` are now disabled by default. - To re-enable the `hocr` output (for example), set the following: `worker.recognize(image, {}, { hocr: true })` - See [here](https://github.com/naptha/tesseract.js/blob/c75a380171e2df87e045808cbc16359a6959f08f/src/index.d.ts#L75-L89) for a list of possible output formats. 1. The JavaScript object output format (`blocks`) was tweaked. - Only the array of blocks (`blocks`) is returned. - Previous versions would automatically generate lists of every unit of text (`words`, `symbols`, etc.). - If needed, these should now be generated by the user. - Only text-based blocks are reported. - Previous versions reported non-text blocks when detected by Tesseract (e.g. line segments). - The shape of some objects were changed. - See the [type declarations](https://github.com/naptha/tesseract.js/blob/master/src/index.d.ts) for reference on properties. - The main properties--`text` and `bbox`--are unchanged. 1. Various functions and options marked as depreciated previously have been removed. 1. This includes `worker.initialize` and `worker.loadLanguage`, along with several depreciated options from v2. See #993 for additional discussion about this release. ##### New Contributors * @IgorAufricht made their first contribution in https://github.com/naptha/tesseract.js/pull/971 **Full Changelog**: https://github.com/naptha/tesseract.js/compare/v5.1.1...v6.0.0