1.2.3 • Published 4 years ago

aws-textract-util v1.2.3

Weekly downloads
2
License
UNLICENSED
Repository
-
Last release
4 years ago

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 })
1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago