madmaze / pytesseract

A Python wrapper for Google Tesseract
Apache License 2.0
5.84k stars 721 forks source link

Add image_url_to_string #415

Open iPurya opened 2 years ago

iPurya commented 2 years ago

add image_url_to_string function to use image direct link instead filename. tesseract 5.1 already have this feature.

bozhodimitrov commented 2 years ago

If tesseract 5.1 supports it, you can just try to use:

pytesseract.image_to_string('https://url')
iPurya commented 2 years ago

this method tries to open the file and when im using url it raise error.

bozhodimitrov commented 2 years ago

Oh, makes sense.