Code Monkey home page Code Monkey logo

Comments (4)

thiagoalessio avatar thiagoalessio commented on June 2, 2024

thanks for the report @khamyl ! There were some changes in tesseract 5 CLI that are still not supported by this wrapper ATM. but I'll get to it some time this week and let you know once it is resolved.

from tesseract-ocr-for-php.

thiagoalessio avatar thiagoalessio commented on June 2, 2024

@khamyl I'm not able to reproduce your issue. Added the following test: 530e120

and it does generate the argument with 2 dashes (--psm): https://github.com/thiagoalessio/tesseract-ocr-for-php/runs/5988701639?check_suite_focus=true#step:5:17

Could you please share the whole command generated by your script?

  $tesseract = new TesseractOCR($img_fpath);
  $tesseract->lang('slk');
  $tesseract->psm(1); //Automatic page segmentation with OSD (orientation and script detection) [Default: 3]
  $tesseract->config('tessedit_create_tsv', '1')
            ->config('tessedit_ocr_engine_mode', '1'); //Neural nets LSTM only.
- $OCR_res = $tesseract->run();
+ echo "${tesseract->command}";

from tesseract-ocr-for-php.

khamyl avatar khamyl commented on June 2, 2024

Well, today I cannot simulate it either and it is working fine.

But I did today probably one important bug fix on my side, where $command->getTesseractVersion(); was returning to me "macro". This was because exec() was running the cmd command and that was implicitly returning "Invalid macro definition." at the first row of captured output. I fixed that today and it is returning something that looks like real version. It may be that because of this error I was provided with CLI command of some fallback version of tesseract.

It is closed for me now. Thank you for your time. And sorry for bothering you.

from tesseract-ocr-for-php.

thiagoalessio avatar thiagoalessio commented on June 2, 2024

no problem, thanks for letting me know!

from tesseract-ocr-for-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.