node-tesseract icon indicating copy to clipboard operation
node-tesseract copied to clipboard

Unknown command line argument '-psm' with Tesseract 4

Open BenoitClaveau opened this issue 6 years ago • 4 comments

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 0.6.1 : libopenjp2 2.2.0

I succeeded with --psm instead of -psm.

BenoitClaveau avatar Nov 13 '18 09:11 BenoitClaveau

Yes, seems there should be an update for it

SamuelZhaoY avatar Dec 09 '18 03:12 SamuelZhaoY

Whats the situation of that update?

ayanb07 avatar Apr 16 '20 09:04 ayanb07

still running into this issue... Error, unknown command line argument '-psm'

I'm on Windows 10 64-bit

albertpak avatar Sep 15 '20 05:09 albertpak

This is a simple fix, it just needs another - so it looks like this: --psm on line 65 of lib/tesseract.js. I have a fix but can't push my branch to create a PR due to permissions by the owner

calebrosario avatar Jun 15 '21 15:06 calebrosario