6 thoughts on “python extract text from image or pdf”

  1. The new video how to improve OCR and get better format – getting also the indent
    https://youtu.be/jEYQqLtK_Xw

  2. Love it very basic steps to start working with images and ocr. We can build off this, not sure why so many are down voting the video. No where does creator state this will do your entire project and handle all types of issues…

  3. Extract tabular data from PDF with Python – Tabula, Camelot, PyPDF2
    https://www.youtube.com/watch?v=702lkQbZx50
    Easily extract tables from websites with pandas and python
    https://www.youtube.com/watch?v=OXA_ZD1gR6A
    Easily extract information from excel with Python and Pandas
    https://www.youtube.com/watch?v=hJMH_1o8eU0

  4. This is the new video about how to extract tabular data with python:

    Extract tabular data from PDF with Python – Tabula, Camelot, PyPDF2
    https://youtu.be/702lkQbZx50

    Feel free to ask question!

  5. install tesseract-ocr:
    sudo apt-get install tesseract-ocr

    install pill and pytesseract(used for connection to tesseract-ocr):
    pip install pillow
    pip install pytesseract

    The code

    from PIL import Image
    import pytesseract

    file = Image.open("/home/user/sample.png")
    str = pytesseract.image_to_string(file, lang='eng')

    print(str)

  6. The article is updated with:
    how to improve the OCR processing:
    * Use white color themes (dark text on white background)
    * Scale the image to the optimal size

    good article on OCR efficiency – https://docparser.com/blog/improve-ocr-accuracy/

    New video will be done about extraction of tables from PDF and improving OCR.

Leave a Reply

Your email address will not be published. Required fields are marked *