Update dependency tesseract.js to v5 #30
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.1.0
->^5.0.0
Release Notes
naptha/tesseract.js (tesseract.js)
v5.0.0
Compare Source
What's Changed
Major New Features
Breaking Changes Impacting Many Users
createWorker
arguments changedcreateWorker
createWorker("chi_sim", 1)
worker.initialize
andworker.loadLanguage
functions now do nothing and can be deleted from codecreateWorker
worker.reinitialize
In other words, code should be modified from this:
To this:
Breaking Changes Impacting Fewer Users
corePath
will need to update the contents of theircorePath
directorycorePath
should point to a directory that contains all 4 of the files below from Tesseract.js-core v5:tesseract-core.wasm.js
tesseract-core-simd.wasm.js
tesseract-core-lstm.wasm.js
tesseract-core-simd-lstm.wasm.js
worker.detect
function disabled by defaultlegacyCore: true
andlegacyLang: true
increateWorker
optionsTesseract.createWorker("eng", 1, {legacyCore: true, legacyLang: true});
Non-Breaking Changes
jsdelivr
by default (rather than GitHub pages)tesseract.dev.js
andworker.dev.js
removedTesseract.recognize
andTesseract.detect
worker.recognize
andworker.detect
insteadFull Changelog: naptha/tesseract.js@v4.1.3...v5.0.0
v4.1.4
Compare Source
What's Changed
Full Changelog: naptha/tesseract.js@v4.1.3...v4.1.4
v4.1.3
Compare Source
What's Changed
New Contributors
Full Changelog: naptha/tesseract.js@v4.1.2...v4.1.3
v4.1.2
Compare Source
What's Changed
FS
+writeFile
function (#812)debug: true
was forcing recognition to be run (#788)setParameters
is used to set options that can only be set duringinitialize
(#816)New Contributors
Full Changelog: naptha/tesseract.js@v4.1.1...v4.1.2
v4.1.1
Compare Source
What's Changed
New Contributors
Full Changelog: naptha/tesseract.js@v4.1.0...v4.1.1
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.