1.2.3 • Published 4 years ago
aws-textract-util v1.2.3
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 })