aws-samples / amazon-textract-transformer-pipeline

Post-process Amazon Textract results with Hugging Face transformer models for document understanding
MIT No Attribution
88 stars 25 forks source link

Render bounding boxes in review UI #10

Closed athewsey closed 2 years ago

athewsey commented 2 years ago

Issue #, if available: N/A

Description of changes:

Draw model detection boxes over the document in the A2I review UI, with colours keyed to same set used in SMGT annotation tool.

This feature is delivered via a refractor from direct-authored Liquid HTML template to a Vite + VueJS v3 tool chain, to enable more scalable and modular customisations and extensions to the review UI.

Rather than presenting a minimal implementation of the functionality, the notebooks/review folder gives general guidance on patterns for using Vue with A2I or SMGT.

Testing done:

UI features validated via npm run dev with the index-noliquid.html file. End-to-end notebook 3 template build and integration flow tested in SageMaker Studio. Final deployed template functionality checked with some sample documents.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.