Tesseract: unknown command line argument '-psm'

Created on 11 Oct 2018  路  5Comments  路  Source: tesseract-ocr/tesseract

Before you submit an issue, please review the guidelines for this repository.

Please report an issue only for a BUG, not for asking questions.

Note that it will be much easier for us to fix the issue if a test case that
reproduces the problem is provided. Ideally this test case should not have any
external dependencies. Provide a copy of the image or link to files for the test case.

Please delete this text and fill in the template below.


Environment

  • last:

  • windows 10 64 bit:

Current Behavior:

I'm running the command:
node app.js

I'm new to nodejs, I'm not sure if I need something. Thank you for helping me.

`
var tesseract = require('node-tesseract');

      tesseract.process('17.jpg', (err, text) => {
        if(err){
            return console.log("An error occured: ", err);
        }

        console.log("Recognized text:");
        // the text variable contains the recognized text
        console.log(text);


        /*
        C:\Program Files (x86)\Tesseract-OCR>node app.js
        An error occured: { Error: Command failed: tesseract 17.jpg C:\Users\Chec\AppData\Local\Temp\node-       tesseract-07062fd3-c3dc-4056-871e-341c5c7c13a9 -l eng -psm 3
        Error, unknown command line argument '-psm'
        */



    });

`

know you, how can fix it?

question

Most helpful comment

Try '--psm' instead of '-psm'.

Please do not post more questions here. It's not a forum.

All 5 comments

@amitdo I hope you can help me, I'm in trouble. I tried to use the template, and I can not post in the forum

Try '--psm' instead of '-psm'.

Please do not post more questions here. It's not a forum.

I'm using this nodejs library. But I do not find where to change it. and apologize for the inconveniences.

Try '--psm' instead of '-psm'.

Please do not post more questions here. It's not a forum.

Thanks a lot it works after the changed it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

egorpugin picture egorpugin  路  6Comments

johnthagen picture johnthagen  路  6Comments

Shreeshrii picture Shreeshrii  路  4Comments

eliyaz-kl picture eliyaz-kl  路  4Comments

clarkk picture clarkk  路  3Comments