Using AWS Textrac SDK for Node this script reads the image files from the folder called tickets/ and return, in JSON form, the dates and money quantities or prices that Textract extracts from the images.
To install just type:
npm install
And to run type:
node index.js
You will be prompted with the info with every image loading by Texttrac and the JSON response