Skip to content

Preprocessing pipeline notebooks and API supporting text extraction from receipts images

License

Notifications You must be signed in to change notification settings

Unstructured-IO/pipeline-receipts

https://pypi.python.org/pypi/unstructured/ https://pypi.python.org/pypi/unstructured/ https://github.com/Naereen/badges/

Pre-Processing Pipeline for Receipts

This repo implements a document pre-processing pipeline for receipts. Currently, the pipeline is under development. The pipeline assumes the receipts are in PDF or image formats (JPG, PNG).

The API is hosted at https://api.unstructured.io.

☕ Getting Started

  • Using pyenv to manage virtualenv's is recommended

    • Mac install instructions:
      • brew install pyenv-virtualenv
      • pyenv install 3.8.15

    Create a virtualenv to work in and activate it, e.g. for one named receipts:

    pyenv virtualenv 3.8.15 receipts
    pyenv activate receipts

  • Run make install

  • Start a local jupyter notebook server with make run-jupyter
    OR
    just start the fast-API locally with make run-web-app

Extracting Structured Text from an Receipt Image

After API starts, you can extract the elements of Receipt files with the command:

curl -X 'POST' \
  'http://localhost:8000/receipts/v0.1.0/receipts' \
  -F 'files=@<your_receipt_file>' \
  | jq -C . | less -R

Generating Python files from the pipeline notebooks

You can generate the FastAPI APIs from your pipeline notebooks by running make generate-api.

💂‍♂️ Security Policy

See our security policy for information on how to report security vulnerabilities.

🤗 Hugging Face

Hugging Face Spaces offer a simple way to host ML demo apps, models and datasets directly on our organization’s profile. This allows us to showcase our projects and work collaboratively with other people in the ML ecosystem. Visit our space here!

Learn more

Section Description
Company Website Unstructured.io product and company info
Fine-tuned Models and Data CORD Consolidated Receipt dataset and Donut model

About

Preprocessing pipeline notebooks and API supporting text extraction from receipts images

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published