aws-samples/amazon-textract-textractor
Analyze documents with Amazon Textract and generate output in multiple formats.
What it solves
Textractor simplifies the process of interacting with Amazon Textract, a document intelligence service. It removes the complexity of making raw API calls and parsing the resulting JSON responses, making it easier to build everything from simple scripts to complex, distributed document processing pipelines.
How it works
It acts as a Python wrapper around the Amazon Textract API, providing a high-level interface to perform various document analysis tasks. It can process images, bytes, or S3 paths and offers specialized methods for different needs:
- Text Recognition: Extracting raw text from documents.
- Table Extraction: Identifying and extracting structured data from tables, which can then be exported to formats like Excel.
- Form Processing: Extracting key-value pairs from forms with support for fuzzy matching.
- Identity Document Analysis: Extracting specific fields from IDs.
- Expense Processing: Extracting summary fields from receipts.
Who it’s for
Developers and data engineers who need to extract structured data from documents using AWS services without dealing with the low-level API responses.
Highlights
- Comprehensive Tooling: Includes integrated utilities for calling the API, parsing responses, drawing bounding boxes (overlayer), and converting output to CSV, text, or markdown (prettyprinter).
- Flexible Installation: Offers a minimal version for AWS Lambda and optional extras for pandas, PDF rasterization (via pdfium or pdf), and torch for ML-based word search.
- CLI Support: Provides a command-line interface for calling and overlaying results directly from the terminal.
- Multi-source Support: Handles file sources including local images, lists of images, bytes, and S3 paths.
Related
- Project
- Project
- Project
- Project
- Project