lipsakandhei
@lipsakandhei
i've installed tesseract-ocr in d:drive
tesseract-ocr version 3.05
you need to download wrapper using composer
you need to copy tesseract where is your project or
thiagoalessio
@thiagoalessio
@lipsakandhei the namespace you are using is wrong.
replace use thiagoalessio\tesseract_ocr\TesseractOCR;
by use thiagoalessio\TesseractOCR\TesseractOCR;
lipsakandhei
@lipsakandhei
thank you so much it worked!!! :clap:
but it is showing blank screen
lipsakandhei
@lipsakandhei
this is the code i refered from the previous discussion with @bciar [Webninja] , i've installed the tesseract_ocr in my d: drive
thiagoalessio
@thiagoalessio
inspect the constant PHP_OS
, it is not equals "WIN"
, it contains it. Your comparison should be something like if [stristr[PHP_OS, 'WIN']]
waseemkhaliq123
@waseemkhaliq123
I trying to install thiagoalessio/tesseract-ocr-for-php in laravel 5.5 for windows using xammp. But when i run code getting no output and no error.
Can anyone help me to fix this issue?
thiagoalessio
@thiagoalessio
hello @waseemkhaliq123 , sure I can try to help you, please let me know the following info:
- Operating system:
$ uname -srvm
or> winver
- PHP version:
$ php --version
- Tesseract version:
$ tesseract --version
- tesseract-ocr-for-php version:
$ composer show thiagoalessio/tesseract_ocr
waseemkhaliq123
@waseemkhaliq123
Operating system windows 8.
PHP version 7.2.3
tesseract version 2.4.0
Please tell me how i can solve this issue. When i run code not getting any output and any error.
thiagoalessio
@thiagoalessio
What about your tesseract
version? The CLI binary
waseemkhaliq123
@waseemkhaliq123
tesseract is version 2.4.0
thiagoalessio
@thiagoalessio
No, thats the version of my php wrapper, you need the real tesseract as well
waseemkhaliq123
@waseemkhaliq123
Please send me github link or latest version link.
thiagoalessio
@thiagoalessio
waseemkhaliq123
@waseemkhaliq123
please tell me latest version of tesseract.
thiagoalessio
@thiagoalessio
Its probably 3.05
waseemkhaliq123
@waseemkhaliq123
is there any library or package of tesseract for laravel?
How i can use this wrapper for laravel?
waseemkhaliq123
@waseemkhaliq123
there is no package of this version composer require thiagoalessio/tesseract_ocr 3.05
this command is not working. Please help.
@thiagoalessio Are you here?
thiagoalessio
@thiagoalessio
Hum, let me try to clarify this to you with an example:
Imagine you want to communicate with MySQL from PHP.
you would need
to have some php functions to connect/query MySQL, but you also need a real MySQL database running somewhere.
What thiagoalessio/tesseract_ocr [the php library] offers are just the php functions to talk to tesseract. You still need the real tesseract program installed on your host.
And that is not a php/composer thing. Is a program written in C++ that you can install via apt-get/yum/brew etc
waseemkhaliq123
@waseemkhaliq123
Yes it help. I installed tesseract on my windows and added path in executable method. but not working.
please tell me latest version of "thiagoalessio/tesseract_ocr" that i can use through composer.
thiagoalessio
@thiagoalessio
2.4.0
waseemkhaliq123
@waseemkhaliq123
Is it compatible with php 7.2?
thiagoalessio
@thiagoalessio
Yes
waseemkhaliq123
@waseemkhaliq123
Can you send me step by step instruction to setup thiagoalessio/tesseract_ocr php wrapper and "Tesseract library " on local server [xampp] on windows operating system.
thiagoalessio
@thiagoalessio
Hello does this works in CodeIgniter? I can't seem to find how to work this in CodeIgniter. Thank you.
thiagoalessio
@thiagoalessio
It is merely a composer library, should work with any PHP project, regardless of frameworks
Hello I'm trying to make a project in XAMPP but I'm still confused about installing tesseract. Should it be installing from the UB Mannheim or thru Composer?
thiagoalessio
@thiagoalessio
Please just scroll up a bit and read the example I gave [comparing it to MySQL] and let me know if that clarifies your doubts
Short answer: you need to install both
Thank you! I already downloaded tesseract in Composer however does the vendor folder should be in C:\Users\MyAccount or in my project folder?