Skip to content

Instantly share code, notes, and snippets.

@atsmith813
Last active October 23, 2019 23:16
Show Gist options
  • Save atsmith813/805bac8824598ab25295afaf596cace7 to your computer and use it in GitHub Desktop.
Save atsmith813/805bac8824598ab25295afaf596cace7 to your computer and use it in GitHub Desktop.
AWS Textract
# continuing from above with s3_image
client = Aws::Textract::Client.new
resp = client.analyze_document({
document: { s3_object: { bucket: ENV['AWS_BUCKET'], name: s3_image.key } },
feature_types: ['TABLES']
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment