Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsed Text Algorithm #36

Open
2 tasks
jenesh opened this issue Apr 15, 2020 · 0 comments
Open
2 tasks

Parsed Text Algorithm #36

jenesh opened this issue Apr 15, 2020 · 0 comments
Labels
frontend Changes to the frontend HIGH High priority needs to be completed ASAP

Comments

@jenesh
Copy link
Collaborator

jenesh commented Apr 15, 2020

🎯 Objective 🎯

Create a function which takes in the parsed text from the image and returns an object placing the correct values in their respective keys.

  • **Input -> Parsed text (string) & **
  • Output -> JS object (object)

🤔 Assumptions 🤔

  1. All currency is in USD($)
    • So price can be stored as numbers
  2. Receipt items and its details are all in one row
  3. Categories can be ignored for now
  4. Receipt items each have:
    • Name
    • Quantity (or maybe repeated multiple times on the receipt)
    • Price (Unit/ total price)
    • UPC/Item number (optional)
  5. Subtotal of the items (can also be verified with the total sum of all the individual items)
    • If totals don't match account for the difference as tax as long as it is at a reasonable percentage of the item/receipt total

📝 Note 📝

  • Priority is food items
  • Store name and address can be ignored for now (user can input them manually)
    • Store name and address can be verified and cross referenced through external api
  • Aim for 80% accuracy since 100% might not be possible and/or time consuming
@jenesh jenesh added frontend Changes to the frontend HIGH High priority needs to be completed ASAP labels Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Changes to the frontend HIGH High priority needs to be completed ASAP
Projects
None yet
Development

No branches or pull requests

1 participant