From OCR, Document Extraction, Understanding, Hugging face has come a long way :)
DocQnA Pipeline very impressive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install packages in colab | |
#!apt install tesseract-ocr | |
#!apt install libtesseract-dev | |
#!pip install Pillow | |
#!pip install pytesseract | |
#!pip install transformers | |
# You can use a http link, a local path or a PIL.Image object | |
img_path = "https://huggingface.co/spaces/impira/docquery/resolve/main/contract.jpeg" | |
from transformers import pipeline | |
pipe = pipeline("document-question-answering") | |
pipe(image=img_path, question="what is the purchase amount?") | |
pipe(image=img_path, question="what is the industry name?") |
Results
- TesserOCR
- MMOCR
- OCRmypdf
- EasyOCR
- PaddleOCR
- Kraken
- OCRopus
- PyOCR
- Tesseract
Keep Learning!!!
No comments:
Post a Comment