Coder Social home page Coder Social logo

Comments (10)

ravitdx avatar ravitdx commented on August 14, 2024

@imsocb

try run this command in the directory where image was there tesseract text.jpeg test.txt. If it shows text in test.txt,then In my opinion your path to text.jpeg in the above code might be wrong.

from tesseract-ocr-for-php.

imsocb avatar imsocb commented on August 14, 2024

Hi @ravitdx Thanks for the reply!
I've got tesseract working however, why is it returning nonsensical output as opposed to what it should be reading in my text.jpeg image? A sample of the image here --> https://www.dropbox.com/s/fhfolj3bsnxms64/text.jpeg?dl=0
I'm rather new in using PHP via OCR technologies to translate image into text, how do i get it to read the correct English/number text content in the namecard, read somewhere below 300dpi everything is considered noise from here https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality#tools--libraries. Can you recommend to improve reading from my text.jpeg based on my senario bacause after reading the link above I'm still lost at what I should do? Thank You

from tesseract-ocr-for-php.

ravitdx avatar ravitdx commented on August 14, 2024

@imsocb

I think you took a snap with some camera and used that image.Instead scanning the image with a scanner and using it will produce better results.In the link you gave Binarisation and Rotation / Deskewing are your problems.Apart from problems mentioned in the link,It also depends on font in the image.A font which shows a clear partition between words will produce good results.

from tesseract-ocr-for-php.

imsocb avatar imsocb commented on August 14, 2024

@ravitdx It has to be camera images uploaded into the server unfortunately for my case while scanning is not an option. So based on what you have stated (e.g. Binarisation and Rotation/Deskewing isn't these functions built into tesseract?) Or these issues had to solve with additional software or tools installed into xampp environment to improve the reading result? If so can you recommend some of it to improve my reading result? Thank You!

from tesseract-ocr-for-php.

KoalaBear84 avatar KoalaBear84 commented on August 14, 2024

Had the same problem. I had to also include "tesseract.exe" in the command like this:
->executable('..\tesseract-3.0.4\tesseract.exe')

It would be nice if there was some sort of error reporting or warning.

from tesseract-ocr-for-php.

johnico avatar johnico commented on August 14, 2024

have same problem with wamp - got white page

from tesseract-ocr-for-php.

thiagoalessio avatar thiagoalessio commented on August 14, 2024

Sorry but this is not the right place to request help, the issues on this repo are meant for reporting bugs on the library.
I'd recommend you post your questions / request for support on #tesseract-ocr-for-php on freenode IRC.

from tesseract-ocr-for-php.

jammyproject avatar jammyproject commented on August 14, 2024

this code : exec('tesseract raj_OCR.png imagetextname'), i got text file but. on this code : (new TesseractOCR('raj_OCR.png'))->run();
i got this error :
Fatal error: Uncaught thiagoalessio\TesseractOCR\UnsuccessfulCommandException: Error! The command did not produce any output. Generated command: "tesseract" "raj_OCR.png" C:\Users\SQR PC\AppData\Local\Temp\ocr22DF.tmp Returned message: read_params_file: Can't open PC\AppData\Local\Temp\ocr22DF.tmp Error, could not create TXT output file: Permission denied in C:\xampp\htdocs\rnd_program\composer\vendor\thiagoalessio\tesseract_ocr\src\FriendlyErrors.php:63 Stack trace: #0 C:\xampp\htdocs\rnd_program\composer\vendor\thiagoalessio\tesseract_ocr\src\TesseractOCR.php(24): thiagoalessio\TesseractOCR\FriendlyErrors::checkCommandExecution(Object(thiagoalessio\TesseractOCR\Command), Array) #1 C:\xampp\htdocs\rnd_program\test.php(18): thiagoalessio\TesseractOCR\TesseractOCR->run() #2 {main} thrown in C:\xampp\htdocs\rnd_program\composer\vendor\thiagoalessio\tesseract_ocr\src\FriendlyErrors.php on line 63

please help me as soon as posible

from tesseract-ocr-for-php.

jammyproject avatar jammyproject commented on August 14, 2024

hi,
i install on tesseract at this location : C:\Program Files (x86) and i set variable on environment variable also. and i install using composer and loaded file using autoload.php ,
so i got above error. please help me. is required to install in xampp also ?
please help me.

from tesseract-ocr-for-php.

thiagoalessio avatar thiagoalessio commented on August 14, 2024

@jammyproject I'd like to point to you this project's Gitter: https://gitter.im/thiagoalessio/tesseract-ocr-for-php I'm sure someone there (maybe even myself) would be able to support you with your problem.

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.