[tesseract-ocr] Re: OCR of gas meter

2023-12-25 Thread Martina Ilgon
Meanwhile I found some PHP functions to crop the image and change the contrast and brightness. The code is as follows: // Resize $thumb = imagecrop($source, ['x' => 830, 'y' => 330, 'width' => 115, 'height' => 30]); // Filter imagefilter($thumb, IMG_FILTER_GRAYSCALE); imagefilter($thumb,

[tesseract-ocr] OCR of gas meter

2023-12-25 Thread Martina Ilgon
I'm totally new with Tesseract and its usage and I tried several hours to get a suitable result for the attached web-cam picture of my gas meter. I do use tesseract with the PHP wrapper from here https://github.com/thiagoalessio/tesseract-ocr-for-php and installation and recognition with the

Re: [tesseract-ocr] inaccuracy in plane text

2023-12-25 Thread Zdenko Podobny
I put it to documentation because I had the same problem as you (to find it) :-) Zdenko po 25. 12. 2023 o 4:40 Ger Hobbelt napĂ­sal(a): > > > On Sat, 23 Dec 2023, 19:16 Zdenko Podobny, wrote: > >> tesseract expects black text (lettering) on a white background: that's >> what is has been