Skip to content

Repository files navigation

Amazon Textract Code Samples

This repository contains example code snippets showing how Amazon Textract and other AWS services can be used to get insights from documents.

Usage

python3 01-detect-text-local.py

For examples that use S3 bucket, upload sample images to an S3 bucket and update variable "s3BucketName" in the example before running it.

Python Samples

ArgumentDescription
01-detect-text-local.pyExample showing processing a document on local machine.
02-detect-text-s3.pyExample showing processing a document in Amazon S3 bucket.
03-reading-order.pyExample showing printing document in reading order.
04-nlp-comprehend.pyExample showing detecting entities and sentiment.
05-nlp-medical.pyExample showing detecting medical entities.
06-translate.pyExample showing translation of documents.
07-search.pyExample showing document indexing in Elasticsearch.
08-forms.pyExample showing form (key/value) processing.
09-forms-redaction.pyExample showing redacting information in document.
10-tables.pyExample showing table processing.
11-tables-expense.pyExample showing validation of table data.
12-pdf-text.pyExample showing PDF document processing.

.NET Usage

Usage: dotnet run [--switch]
To run this console app, use the following valid switches one at a time:
--detect-text-local
--detect-text-s3
--pdf-text
--forms
--forms-redaction
--tables
--tables-expense
--reading-order
--nlp-comprehend
--nlp-medical
--translate
--search
e.g. dotnet run --detect-text-s3

.NET Samples

Go to src-csharp folder for .NET samples

ArgumentDescription
--detect-text-localExample showing processing a document on local machine.
--detect-text-s3Example showing processing a document in Amazon S3 bucket.
--pdf-textExample showing PDF document processing.
--formsExample showing form (key/value) processing.
--forms-redactionExample showing redacting information in document.
--tablesExample showing table processing.
--tables-expenseExample showing validation of table data.
--reading-orderExample showing printing document in reading order.
--nlp-comprehendExample showing detecting entities and sentiment.
--nlp-medicalExample showing detecting medical entities.
--translateExample showing translation of documents.
--searchExample showing document indexing in Elasticsearch.

Other Resources

License Summary

This sample code is made available under the MIT-0 license. See the LICENSE file.

About

Amazon Textract Code Samples

Resources

Code of conduct

Contributing

Security policy

Stars

449 stars

Watchers

22 watching

Forks

Releases

Packages

Used by

Contributors

Languages