[tesseract-ocr] Re: OCR of gas meter

2024-01-02 Thread Tom Morris
On Monday, December 25, 2023 at 12:09:12 PM UTC-5 martin...@gmail.com wrote: 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. This has been a pretty common use case over the years. If you search

[tesseract-ocr] Re: OCR of gas meter

2023-12-26 Thread Mukul Soni
Hi Can you provide version of tessaract you are using? and if you are going to use github library you can try this code run(); echo $result; } catch (TesseractOcrException $e) { echo 'Error: ' . $e->getMessage(); } On Monday, December 25, 2023 at 10:39:12 PM UTC+5:30 Martina Ilgon

[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,