aws-textract-util
v1.2.3
Published
Textract utility to search elements on textract's json result
Downloads
4
Readme
aws textract util
A helper to filter and search on the aws textract's json result
Table of content
Install
npm install aws-textract-util
or
yarn add aws-textract-util
Example
Create an utility
const textractUtil = new TextractUtil(textractResult)
Tables
Filter tables on page 1
const tables = textract.tables({ page: 1 })
Filter with confidence greather or equals to 50
const tables = textract.tables({ page: 1, confidence: 50 })
Fields
Filter fields on page 1
const fields = textract.fields({ page: 1 })
Filter with confidence grather or equals to 60
const fields = textract.fields({ page: 2, confidence: 60 })
Lines
Filter lines on page 1
const lines = textract.lines({ page: 1 })
Filter with confidence grather or equals to 60
const lines = textract.lines({ page: 1, confidence: 60 })