There are more AWS SDK examples available in the AWS Doc SDK Examples
Detect entities in text extracted from an image using an AWS SDK
The following code example shows how to use Amazon Comprehend to detect entities in text extracted by Amazon Textract from an image that is stored in Amazon S3.