The minimalistic document archiving platform.
chore(extarction): upgrade tesseract.js to v7 (#1184)
Corentin Thomassete2c3aa61fca6
diff --git a/.changeset/large-sites-open.md b/.changeset/large-sites-open.mdnew file mode 100644index 00000000..9a894e78--- /dev/null+++ b/.changeset/large-sites-open.md@@ -0,0 +1,6 @@+---+'@papra/lecture': patch+'@papra/app': patch+---++Updated tesseract.js to v7 which should increase extraction performance by 15 to 35% on images, [source](https://github.com/naptha/tesseract.js/releases/tag/v7.0.0).diff --git a/packages/lecture/package.json b/packages/lecture/package.jsonindex f454b6b3..b949021b 100644--- a/packages/lecture/package.json+++ b/packages/lecture/package.json@@ -49,7 +49,7 @@"jszip": "^3.10.1","rtf-parser": "^1.3.3","sharp": "catalog:",- "tesseract.js": "^6.0.0",+ "tesseract.js": "^7.0.0","tinyexec": "^1.0.2","unpdf": "^1.4.0"},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 580209fd..b693ebd8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -765,8 +765,8 @@ importers:specifier: 'catalog:'version: 0.34.5tesseract.js:- specifier: ^6.0.0- version: 6.0.0+ specifier: ^7.0.0+ version: 7.0.0tinyexec:specifier: ^1.0.2version: 1.0.2@@ -9497,11 +9497,11 @@ packages:engines: {node: '>=10'}hasBin: true- resolution: {integrity: sha512-1Qncm/9oKM7xgrQXZXNB+NRh19qiXGhxlrR8EwFbK5SaUbPZnS5OMtP/ghtqfd23hsr1ZvZbZjeuAGcMxd/ooA==}+ resolution: {integrity: sha512-WnNH518NzmbSq9zgTPeoF8c+xmilS8rFIl1YKbk/ptuuc7p6cLNELNuPAzcmsYw450ca6bLa8j3t0VAtq435Vw==}- resolution: {integrity: sha512-tqYCod1HwJzkeZw1l6XWx+ly2hhisGcBtak9MArhYwDAxL0NgeVhLJcUjqPxZMQtpgtVUzWcpZPryi+hnaQGVw==}+ resolution: {integrity: sha512-exPBkd+z+wM1BuMkx/Bjv43OeLBxhL5kKWsz/9JY+DXcXdiBjiAch0V49QR3oAJqCaL5qURE0vx9Eo+G5YE7mA==}resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}@@ -20724,9 +20724,9 @@ snapshots:commander: 2.20.3source-map-support: 0.5.21- [email protected]: {}+ [email protected]: {}dependencies:bmp-js: 0.1.0idb-keyval: 6.2.1@@ -20734,7 +20734,7 @@ snapshots:node-fetch: 2.7.0opencollective-postinstall: 2.0.3regenerator-runtime: 0.13.11- tesseract.js-core: 6.0.0+ tesseract.js-core: 7.0.0wasm-feature-detect: 1.8.0zlibjs: 0.3.1transitivePeerDependencies: