Skip to content

mii9000/aws-textract-extractor

Repository files navigation

aws-textract-extractor

Utility package to help parse AWS Textract response

Install

npm install aws-textract-extractor

Usage

import extractor from 'aws-textract-extractor';
const { pairs, tables } = extractor.extract(blocks)

API

extract(blocks)

input

Type: Block[]

Blocks response from AWS Textract commands.

returns

Type: object

An object with extracted forms data as key-value pair and tables data

{
 "pairs": { },
 "tables": [ ]
}

About

Utility package to help parse AWS Textract response

Resources

License

Stars

Watchers

Forks

Packages

No packages published