Reputation: 21
I have been working on a project of my own, building OCR using AWS. My Main idea is to use node & express , I have successfully created upload page, I had kept a trigger whenever a POST request(File upload) to my S3 bucket comes I am sending a trigger notification to lambda and invoking it.....
I am not sure how to send my file to Amazon text extract … I would be very grateful if anyone give solution to my problem..
My use case:
User-> upload File(S3)->Amazon Text Extract -> SentimentAnalysis/KeyPhrasaes ->Logic ->Result.
Upvotes: 1
Views: 1491
Reputation: 159
This asynchronous flow will work for your case.
Browser/Express backend -> S3(file upload) -> Lambda(Get S3 bucket & key) -> AWS Textract -> SNS -> AWS Lambda -> Your logic goes on after pulling textract result.
https://docs.aws.amazon.com/textract/latest/dg/API_StartDocumentAnalysis.html https://docs.aws.amazon.com/textract/latest/dg/API_StartDocumentTextDetection.html
Upvotes: 1