tesseract.js
tesseract.js copied to clipboard
Replace child_process with worker_threads in Node.js version
Replacing child_process
with worker_threads
should yield better performance and a smaller memory footprint in general. Additionally, as images being serialized/deserialized when passed to child processes appears to be the major bottleneck on the Node.js version, so this change is likely to resolve as worker_threads
uses structuredClone
.