GithubHelp home page GithubHelp logo

patagonia-ocr's Introduction

ASU-CIC OCR API

Description

The API receives a single file in the file key of a multipart/form-data POST payload, validates it, converts it if necessary, and uploads it to S3.

When the provided file is a PDF document a call is made to AWS Textract and the HTTP request is responded immediately with a requestId, the process continues asynchronously via an SNS topic, when the AWS Textract job is complete, the obtained data is mapped, validated, normalized, and then saved in a .csv file in an S3 bucket. Later a GET request can be made to the same endpoint appending the /requestId to the url, to retrieve the result data when the process is finished.

On the other side, when the provided file is an image the process is carried on synchronously, and the result data will be available in the same POST response.

Currently Supported file types

File posted can be any PNG / JPG / HEIC image or a PDF document. Maximum file size is 6MB.

Currently Supported documentTypes

Utility Bills
  • APS
  • Southwest Gas
  • City of Phoenix Water
  • SRP
Others
  • Arizona Driver license

Important Notes

1- Objects stored in the S3 bucket have a lifecycle of 14 days before deletion.

2- You can add ?debug to any POST or GET request made to view more details on output and logs. Also all intermediate states of the data is saved into the S3 bucket when this flag is present.


API Documentation

See README.api.md for full docs regarding the API.

Data Extraction Logic Documentation

See README.ext.md for docs on currently supported documentTypes

Development Documentation

See README.dev.md

patagonia-ocr's People

Contributors

andobolocco avatar rodrigofalco avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.