Comments (4)
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.
@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.
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.
no problem, thanks for letting me know!
from tesseract-ocr-for-php.
Related Issues (20)
- is there a way to set the return type from text to json with lables like google cloud vision ? HOT 1
- Responsible disclosure HOT 2
- How can i setup path on Cpanel ? HOT 1
- Error! The command did not produce any output. HOT 1
- setOutputFile does not support Multi Files HOT 1
- Cannot set tesseract path HOT 1
- Error! The command did not produce any output | for image with no text HOT 1
- Any idea why i have error? HOT 1
- How to extract by coordinates HOT 2
- Is there anyway t sending multiple images on 1 run HOT 2
- Failure when Win temp dir is not writtable by user HOT 4
- Getting the coordinates from recognized text. HOT 1
- Clean up lingering processes HOT 1
- Update links to tesseract documentation
- undefined api of userWords HOT 1
- When using imageData, checkTesseractPresence is not called HOT 3
- Can i extract text from a cell of table in image with this library? HOT 1
- Bug when processing uploaded temp file with no file extension HOT 1
- hocr not working (Fatal error) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesseract-ocr-for-php.