For Debian you can also get the latest packages from
https://notesalexp.org/tesseract-ocr/

On Sat, Feb 1, 2020 at 10:56 AM Shree Devi Kumar <[email protected]>
wrote:

> The version of leptonica that you have
>
> leptonica-1.79.0
>   libpng 1.2.50 : zlib 1.2.8
>
> Only has support for png. All others will fail.
>
> You need to change leptonica build to include libtiff etc.
>
> On Sat, Feb 1, 2020, 05:48 lundissimo <[email protected]> wrote:
>
>> Thank you for that link. I hadn't retrieved the file from the releases
>> section. I have now re-obtained and re-installed both leptonica and
>> tesseract. Because I found files lib{gif,jpeg,png,tiff,webp,openjp2}* in
>> system folder /usr/lib/x86_64-linux-gnu, I included that folder to the
>> linker. The steps followed are as follows:
>> wget https://github.com/DanBloomberg/leptonica/archive/1.79.0.zip
>> unzip 1.79.0.zip
>> cd leptonica-1.79.0/
>> ./autogen.sh
>> ./configure "LDFLAGS=-L/usr/lib/x86_64-linux-gnu"
>> make
>> make install
>> cd ..
>> wget https://github.com/tesseract-ocr/tesseract/archive/4.1.1.tar.gz
>> zcat 4.1.1.tar.gz |tar xvf -
>> cd tesseract-4.1.1
>> ./autogen.sh
>> ./configure "LDFLAGS=-L/usr/lib/x86_64-linux-gnu"
>> make
>> make install
>> ldconfig
>> make training
>> make training-install
>>
>> I've attached the config.log files produced by both configure commands,
>> in case they contain any clues.
>>
>> After this new install, the 'tesseract -v' command outputs:
>> tesseract 4.1.1
>>  leptonica-1.79.0
>>   libpng 1.2.50 : zlib 1.2.8
>>
>> And of course, it does not work. Testing on an image of a page of text:
>>  tesseract 6305_6.jpg 6305_6
>> Error in pixReadMemTiff: function not present
>> Error in pixReadMem: tiff: no pix returned
>> Error in pixaGenerateFontFromString: pix not made
>> Error in bmfCreate: font pixa not made
>> Tesseract Open Source OCR Engine v4.1.1 with Leptonica
>> Error in pixReadStreamJpeg: function not present
>> Error in pixReadStream: jpeg: no pix returned
>> Error in pixRead: pix not read
>> Error during processing.
>> There must be something missing in the system, or in the build options.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tesseract-ocr" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tesseract-ocr/1a053bdf-3fea-4bc1-be95-8c582bb57e3c%40googlegroups.com
>> <https://groups.google.com/d/msgid/tesseract-ocr/1a053bdf-3fea-4bc1-be95-8c582bb57e3c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 

____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduXrj%2BQGvH57EidFY5UYuRvppjYh-%3D4GjO77eXme5kqOmA%40mail.gmail.com.

Reply via email to