I am trying to parse text in an image of a restaurant bill. I've been able to set up the ruby AWS SDK which has the Rekognition client using this example. Moreover, locally I have been able to make a call to Rekognition, passing an image locally.
When I make the call with #detect_text
(docs), I get a response and the response has TextDetections
which represent either lines or words in the image. I would like however that response to only contain TextDetections
of type LINE
. Here are my questions:
- Is it possible to get a response back that only contains
TextDetections
of typeLINE
? - Is it possible to increase the limit of words detected in an image? Apparently according to the docs:
DetectText can detect up to 50 words in an image That sounds like a hard limit to me.
- Is there a way I can get around the limit of 50 words in an image? Perhaps I can make multiple calls on the same image where Rekognition can parse the same image multiple times until it has all the words?