[tesseract-ocr] Re: Memory leak in read_squished_dawg

2023-07-27 Thread Fish Money
Hey there, just faced the same issue Have you fixed the valgrind warning someway? пятница, 7 апреля 2017 г. в 02:49:28 UTC-7, fri...@gmail.com: > I have compiled the *basic example* from the wiki: > https://github.com/tesseract-ocr/tesseract/wiki/APIExample > > #include > #include > > int

[tesseract-ocr] valgrind memcheck see serious leak on TessBaseAPI

2023-07-27 Thread Fish Money
Working on memory leaks, just faced that valgrind memcheck see serious leak on TessBaseAPI initialization call api4->Init is there any way to fix this? UPDATE: if valgrind memcheck api sample from official Tesseract site API examples | tessdoc (tesseract-ocr.github.io)

Re: [tesseract-ocr] Re: Trying to understand why Tesseract-ocr fails on some images

2023-07-27 Thread nor s
I'm back and still at it. I've found that if I crop the images so that there is a 1 or 2 pixel's of the image included in the box Tesseract seems to have a better result in resing the date/time values. See attached. I find this whole exercise a great learning experience. Cheers Nor On

Re: [tesseract-ocr] Re: Trying to understand why Tesseract-ocr fails on some images

2023-07-27 Thread astro
HI Tom.     Yup I'm aware of the Exif tools unfortunately these images are not directly off the ssd card and have been modifies some how losing the time stamp for the images. Cheers  Nor On 7/27/2023 12:19 PM, Tom Morris wrote: Instead of playing with OCR, why not just extract the date and

[tesseract-ocr] Re: Trying to understand why Tesseract-ocr fails on some images

2023-07-27 Thread Tom Morris
Instead of playing with OCR, why not just extract the date and time from the EXIF data in the JPEG using exiftool or a similar utility? The Bushnell camera traps apparently don't encode the other date like the temperature in the EXIF, but other manufacturers like

Re: [tesseract-ocr] Re: Trying to understand why Tesseract-ocr fails on some images

2023-07-27 Thread Lorenzo Bolzani
Hi Nor, I would crop the text as tight as possible, in this way you control exactly the text region (see the attached image). Altro try adding a white border of 1 or 2 pixels later, see IF this works best. The image you sent is not pure black and white, so maybe the automatic cropping gets