252
questions
0
votes
0
answers
17
views
Best strategy for chaining AWS Comprehend custom classifiers? [closed]
I work for a law firm that receives standardized forms as paper mail from a public government administration - usually around 100-150 multi-page documents per day. The problem is, this administration ...
0
votes
0
answers
33
views
Not getting tables using Textract with NextToken?
I'm trying to extract tables from a multipage pdf using AWS Textract. The code appears to extract tables when there's no NextToken passed and when removing the while statement, but when added, the ...
0
votes
0
answers
21
views
AWS Textract Custom Model access
Anyone who have experience in using a custom aws Textract model in you application. I have developed the aws Textract custom model. But unlike Rekogntion and Comphrend I could not find the ARN plus I ...
0
votes
0
answers
27
views
Parsing AWS Textract response - Using amazon-textract-response-parser
I'm sending a table image to aws textract it returns a response I tried making use of this package https://github.com/aws-samples/amazon-textract-response-parser but for some reason I've been getting ...
0
votes
0
answers
101
views
AWS Textract Too Slow
We are using AWS Textract to OCR PDFs. We don't use any of their advanced form/table detection, queries, etc. features. We only want to take a PDF (or PNG/JPEG), and get back a list of all "...
0
votes
0
answers
28
views
Can I detect multiple ids with Amazon Textract using Identity Documents?
I have this passport type document, the idea is to be able to obtain the data from it, but I am currently having a problem.
The passport number that I am obtaining is not what I expected, because ...
1
vote
0
answers
51
views
AWS Textract With AWS Signature Version 4 Using Go Lang
I have 3 credentials:
host
acckey
secretkey
That from AWS. I am using AWS Signature Ver 4 method
And then i want to using textract feature from AWS with Golang. I have build the code and have a ...
0
votes
1
answer
56
views
amazon-textract-response-parser: Unable to construct TextractDocument with multi-page output downloaded from S3
I'm using the NodeJS version of the library "amazon-textract-response-parser": "^0.4.1"
My process is:
StartDocumentAnalysisCommand with params
{
DocumentLocation: {
...
3
votes
1
answer
301
views
AWS Textract asynchronous operations within multiprocessing
I am working in a Lambda function within AWS. I have two functions which asynchronously call on Textract to return the extracted text from an image. By switching to this asynchronous operation from a ...
1
vote
0
answers
126
views
Pass multiple S3 files to AWS Textract API in Lambda function
I have an image of a PDF containing several text fields that I want to pass to AWS Textract for text extraction. I have thus created cropped images of these specific text boxes. In order to keep all ...
0
votes
0
answers
119
views
How to invoke Textract text analysis with trained adapters in C#?
In my lambda function I invoke Textract document analysis with the code below. In the results I get in the response, the queries defined in the adapter are not considered, only the ones i passed into ...
0
votes
1
answer
150
views
AWS Textract analyze_document function not working with multiple page pdf
import boto3
import os
import pathlib
client = boto3.client('s3')
bucket_name = BUCKET NAME
object_name = FILE NAME
file_name = os.path.join(pathlib.Path(__file__).parent.resolve(), PDFNAME)
print(...
0
votes
0
answers
249
views
Converting docx to a PDF file in a lambda function in 2024
I am trying to find an updated way to convert docx and pptx files to PDF in Lambda in a long-term, sustainable manner. I am creating a data ingestion pipeline and Textract cannot work with docx or ...
0
votes
0
answers
48
views
Limited extracted data on AWS Textract?
I am working with the AWS Texctract api to extract the data from a pdf but textract only returns the first 4 pages, my pdf are not more than 8 pages long and do not exceed the 500mb limit, any idea?
...
1
vote
0
answers
51
views
Amazon Textract Python
I am using the async function GetDocumentAnalysis along with implementing pagination(next_token property of Amazon Textract). I am using an iterative approach for this and the loop runs once with a ...
1
vote
1
answer
389
views
How to print the table and lines in their reading order from a document analyzed by AWS Textract
I am using AWS Textract in order to extract text and tables from a pdf document.
I need code that can parse the text extracted, and tables extracted and print everything in one string in the order ...
0
votes
0
answers
105
views
AWS Textract not able to detect partial-table on the second page
I want to extract tables from a medical bill from a pdf pages using AWS textract, It is either failing to detect the partial table, was header is on the previous page, or it is detecting a wrong ...
0
votes
0
answers
51
views
I need to split a column based on content then apply content with out comma to previous rows using Python
I am using Python in a Amazon_Conda3 JupyterLab Notebook. I extracted data from a document using Textract TABLES. I am iterating through the tables in the document and need to format and present the ...
0
votes
0
answers
23
views
AWS State Machine that creates a document classifier endpoint only working with < a certain number of documents
I really appreciate anyone being willing to help. I’ve been following along with this AWS blog post:
https://aws.amazon.com/blogs/machine-learning/intelligently-split-multi-form-document-packages-with-...
0
votes
1
answer
158
views
How to use asynchronous method with Textractor?
I am trying to use the Textractor package but with a multipage document. I am able to get synchronous method to work using for loop like so:
import os
from textractor import Textractor
from textractor....
1
vote
2
answers
598
views
What is the difference between AWS Textract DetectDocumentText and AnalyzeDocument functions?
I am doing some research into AWS Textract functionality. I see that there are two main ways to get information from PDF files (synchronously): DetectDocumentText and AnalyzeDocument. I have been ...
0
votes
0
answers
87
views
A lambda function in my state machine fails due to a rate limit error: Status Code: 429; Error: TooManyRequestsException - Concurrency issue?
I built a state machine following this AWS Blog for document classification - However, the state machine is failing at the "Check table status" step due to the error above. I took time ...
0
votes
1
answer
229
views
How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
I am trying to scrape multi page pdf using textract.
Need to scrape pdf and format to json based on its sections, sub sections, tables.
while trying to UI demo with LAYOUT and Table it is exactly able ...
0
votes
0
answers
63
views
Image cropping from AWS Textract's analyze_expense method
When I am trying to crop images based on the polygon vertices -> resonse generated from analyze expense, some images are not getting cropped properly.
def vertices_fun(bucket_name, img_path):
...
0
votes
1
answer
107
views
How to pass S3 object and Key to HumanLoopInput of start_human_loop
I am able to extract text from my multi-page PDF using Amazon Textract. Now I want start Human Loop Review. I have already created a workflow and specified the condition there to trigger the Human ...
0
votes
1
answer
300
views
AWS Textract start_document_analysis is not allowing me to use AdapterConfig in my lambda function
Currently I am using textract queries to extract specific information from uploaded pdf documents. I have a lambda function called textract_async_job_creation which is triggered every time a document ...
1
vote
0
answers
42
views
UnsupportedDocumentException: An error occurred (UnsupportedDocumentException) when calling the AnalyzeDocument operation: Request has unsupported doc
I have a multi-page PDF document which I can process fine and extract key value pair in Amazon Textract web interface. However, when I try to extract key value pairs in my Python code, it returns ...
0
votes
0
answers
96
views
How to get pdf page number in aws textract
I am using AWS TETXRACT API. I am looking for a way to get pdf page number also along with text. How can we capture PDF meta data.
Using get_document_text_detection looked for all options to get the ...
0
votes
1
answer
170
views
How does NotificationChannel from the function StartExpenseAnalysisCommand of Amazon Textract works? AmazonTextract unable to publish msg to SNS
Good afternoon,
I am working with this service StartExpenseAnalysisCommand where there is a parameter that I am interested in using called NotificationChannel, where I pass my TopicArn (SNS), so ...
0
votes
0
answers
64
views
aws textract error in blocks_map/ no child_id in blocks_map (on aws lambda)
the helper function:
def get_rows_columns_map(table_result, blocks_map):
rows = {}
for relationship in table_result['Relationships']:
if relationship['Type'] == 'CHILD':
...
0
votes
0
answers
140
views
AWS Textract NodeJS: Detect document from local content as opposed to an S3 url
I have this
const textract = new AWS.Textract({ region });
const params = {
DocumentLocation: {
S3Object: {
Bucket: bucketName,
Name: ...
0
votes
0
answers
33
views
Merging PDF gives me UnsupportedDocumentException when using AWS Textract
I have 2 PDFs that can be analysed by AWS textract (textract.analyze_document). However, after using the python library fitz to merge two PDFs, the merged PDF cannot be anlayzed by AWS textract.
This ...
0
votes
0
answers
32
views
springboot aws textract project occuring Web server failed to start. Port 9090 was already in use even after following steps to resolve
I want build restapi or call web restapi by spring boot in which i am using aws textract where while running the apllication class Web server failed to start. Port 9090 was already in use. error is ...
0
votes
0
answers
20
views
can we save key value pair extracted from the document using aws sdk textract java v2 to seprate database in sqlyog? if yes what is the process?
what will be the process to save output from aws sdk textract java v2 in seprate database sqlyog?
i am using intellij for coding to extract key value pair from aws textract i want save my output or ...
0
votes
0
answers
29
views
unable to extract text using tika in sagemaker, what is the reason for this?
code I've used:
from tika import parser
headers = {
'X-Tika-PDFextractInlineImages': 'true',
}
text = parser.from_file("pdffiles/BG1309020268.pdf",headers=headers)
print(text)
text = parser....
1
vote
0
answers
54
views
AWS Textract Asynchronous Queue Messaging
I'm getting the following error when calling DeleteMessageCommand for my pdf processing.
error InvalidAddress: The address arn:aws:sns:us-west-1:**** is not valid for this endpoint.
Here's where the ...
0
votes
1
answer
448
views
Extracting data from pdf using AWS textract
I have a pdf, i can extract text and other data from AWS textract but there are bar charts, graphs etc, i need way to extract data from those as well, not just labels but what those graphs represent.
...
0
votes
0
answers
70
views
AWS textract ignores some text fragments
I have a document in which some sensitive information is hidden by asterisks:
enter image description here
"All undisputed payments will be due ***** (term omitted) from the date of invoice."...
0
votes
0
answers
73
views
Save a textract trp document as a json
I've loaded a json returned from textract into a trp.Document object, and then modified. Is there any easy way to save this trp.Document as a json in the same textract json structure?
0
votes
0
answers
41
views
Getting an InvalidS3ObectException when calling the StartDocumentAnalysis operation from AWS textract, but only on files with spaces in the name?
I am working on a script where a pdf gets uploaded to s3 and then runs a lambda that uses textract to perform some tasks. The script seems to work well with some pdf's, however, there are other pdfs ...
0
votes
0
answers
41
views
Are PDFs generated with Excel supported by AWS Textract?
I'm trying to build an application where I want to use AWS Textract to analyze expenses. So far it works pretty well except with PDFs that have been generated from an Excel sheet. Does it make any ...
0
votes
1
answer
1k
views
Does AWS Textract support Japanese as a language for OCR? [closed]
I am using AWS Textract to fetch data from forms that I am uploading to S3. I am unable to find any method to perform this on documents in Japanese.
Reading through the AWS Docs shows that there is no ...
2
votes
3
answers
1k
views
AWS Textract OCR reading PDF as single line instead of preserving line breaks
Hi I am new to AWS Textract.
I am using Amazon Textract to extract text from a PDF file. However, the output is not preserving the line breaks from the original PDF.
For example, in the PDF there are ...
1
vote
2
answers
856
views
Amazon Textract async calls unable to send notification to SNS
I am using Amazon Textract to perform OCR asynchronously. While everything works and a JobId is generated, the SNS notification is not generated.
I have verified that I have the correct,
Topic name - ...
1
vote
1
answer
782
views
AWS Textract using QUERIES feature with Java/ Spring Boot
I'm working on a spring boot project that need to use AWS Textract. I want to use the Query Feature. But I can't figure out where to include the query.
I looked into aws documentation and used their ...
0
votes
1
answer
847
views
AWS textract to extract pdf data in key value pairs
I want to extract data from the below pdf in key-value pairs using aws s3 bucket and textract in python djangoenter image description here
Here is my current python code and output
def ...
5
votes
2
answers
962
views
AWS Textract API not showing table data in multipage documents (only shows table on 1st page)
I have worked on a script to extract out tables, forms from pdf documents using AWS Textract in Node.js.
The problem Im facing is that when I use the async (and even sync) operations of textract , I ...
0
votes
1
answer
118
views
Is there a block limit in paws for amazon textract?
I am using the following code to analyze and get all the tables of a pdf document I have in an S3 bucket (based in this article):
textract <- paws::textract()
analyze_document <- function(...
0
votes
1
answer
414
views
AWS Textract document analysis over a defined list of pages
I want to use document analysis with Python 3.9, with specific FeatureTypes for certain pages of a PDF. Is it possible to send the entire PDF file and request analysis for only certain pages, such as ...
0
votes
1
answer
202
views
Textractor Queries CLI syntax
I am trying to use the AWS Textractor from CLI which shows the following:
textractor start-document-analysis [-h] --features
{FORMS,TABLES,QUERIES,SIGNATURES}
...