node-tesseract
node-tesseract copied to clipboard
A simple wrapper for the Tesseract OCR package
No commits since 2017. Here is a new and improved version: https://github.com/zapolnoch/node-tesseract-ocr
Hi, My tesseract doesn't known the -psm argument. ``` tesseract v4.0.0.20181030 leptonica-1.76.0 libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp...
There will be an error when this command is executed. I don't know if it is my personal problem. If there is such a problem, I have modified it
Fixed Errors: "Error, unknown command line argument '-psm'" and "'ERR_INVALID_CALLBACK'"
see changelog https://github.com/tesseract-ocr/tesseract/blob/master/ChangeLog
https://github.com/tesseract-ocr/tesseract/issues/2734 looking for help with the above issue
Here is a contemporary solution from @BenjaminChoou: ## **1. Find where your node-tesseract module is.** On my computer, the path is : `C:\Users\BenjaminChou\node_modules\node-tesseract\lib ` ## **2. Open and modify tesseract.js...
`-psm` option is deprecated. Switched to `--psm` for the latest OCR
`[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.` `s.unlinkSync` should call with a callback. I add an empty callback function to avoid the warning.
This change stops Node JS from complaining about a violation of DEP0013 (fs asynchronous function without callback) by fixing the problem. It adds a callback to fs.unsync, it uses the...