Questions tagged [amazon-rekognition]

Amazon Rekognition provides image analysis as a service. Use this tag for questions regarding Rekognition's API, CLI, or SDKs.

Amazon Rekognition provides image analysis as a service.

Usage Guidance

  • Use this tag for questions regarding Amazon Rekognition's API, CLI, or SDKs.

Resources

312 questions
12
votes
2 answers

Amazon Textract vs Amazon Rekognition DetectText

How do I decide when to use Amazon Textract vs Amazon Rekognition's TextDetect method? My usecase is click picture from mobile and convert image data into text and store into AWS…
vaquar khan
  • 10,864
  • 5
  • 72
  • 96
12
votes
5 answers

Amazon Rekognition for text detection

I have images of receipts and I want to store the text in the images separately. Is it possible to detect text from images using Amazon Rekognition?
user2219441
  • 153
  • 1
  • 1
  • 7
11
votes
3 answers

AWS Lambda Console - Upgrade boto3 version

I am creating a DeepLens project to recognise people, when one of select group of people are scanned by the camera. The project uses a lambda, which processes the images and triggers the 'rekognition' aws api. When I trigger the API from my local…
Deep
  • 673
  • 1
  • 10
  • 23
11
votes
1 answer

An example of calling AWS Rekognition HTTP API from Python

I'd like to try Rekognition's CompareFaces, but I don't see a full example of the syntax for using the HTTP API. Assuming I have two images, how would I call this API from Python to retrieve a similarity score?
jensph
  • 763
  • 1
  • 10
  • 22
8
votes
5 answers

AWS Rekognition JavaScript SDK using Bytes

The AWS Rekognition Javascript API states that for rekognition.compareFaces(params,...) method, the SourceImage and TargetImage can take Bytes or S3Object. I want to use the Bytes which can be "Bytes — (Buffer, Typed Array, Blob, String)" Blob…
7
votes
1 answer

Amazon Rekogntion Image: error InvalidImageFormatException: Request has invalid image format

I am trying to compare faces calling AWS Rekognition from a Node.Js application. When comparing two images on a S3 bucket, all went fine, but when i tried to upload a local image from the client (React Native/Expo app) to compare with another image…
7
votes
1 answer

How can I DetectFaces in Amazon Rekognition AWS with Android Studio?

I have tried so many way but i can't succeed. I haven't found any source code examples for Android(about rekognition) there's a source code in JAVA in the Developer Guide but i cannot implement that even though I tried TT I try to detect faces by…
6
votes
3 answers

AWS Video Rekognition is not publishing results to SNS Topic

Running some nodejs aws rekognition to detect labels in mp4 video, but it will not publish to the specified SNS topic when complete. I don't get any permission errors when submitting the request with the topic/ROLE arns. const AWS =…
6
votes
2 answers

Google Cloud Vision - Which region does Google upload the images to?

I am building an OCR based solution to extract information from certain financial documents. As per the regulation in my country (India), this data cannot leave India. Is it possible to find the region where Google Cloud Vision servers are…
6
votes
4 answers

AWS lambda Unable to import module 'lambda_function': No module named PIL

I am using a lambda function of SearchFacesbyimage And I am using this doc https://aws.amazon.com/blogs/machine-learning/build-your-own-face-recognition-service-using-amazon-rekognition/ where for comparison I am using this from PIL import…
5
votes
1 answer

AWS Rekognition detect label Invalid image encoding error

I am using boto3 to make calls to recognition's detect label method which takes an image (in form of base64-encoded bytes) as an input. However I keep getting InvalidImageFormatException and I don't see why. I have read the documentation and looked…
smriti
  • 1,073
  • 1
  • 13
  • 25
5
votes
2 answers

How do I convert local .JPG file to Base64 to work with Boto3 and Detect_Text?

Relevant Code: import boto3 from PIL import Image import base64 client = boto3.client('rekognition') filename = r'C:\Users\H-63\Pictures\scantests\Rekognition test.JPG' with open(filename, 'rb') as image_file: image = image_file.read() image…
M Waz
  • 755
  • 1
  • 7
  • 18
5
votes
1 answer

How to upload an image to AWS Rekognition using command line tools (AWS CLI)

I am trying to upload JPG or PNG images stored in the local file system to Amazon Rekognition on the command line using aws-cli/1.11.175. Images stored in S3 work perfectly fine, but I can't figure out how the CLI call should look like, if the file…
fred
  • 61
  • 4
5
votes
3 answers

AWS Rekognition gives an InvalidS3Exeption error

Every time I run the command aws rekognition detect-labels --image "S3Object={Bucket=BucketName,Name=picture.jpg}" --region us-east-1 I get this error. InvalidS3ObjectException: An error occurred (InvalidS3ObjectException) when calling the…
Rjbeckwith
  • 720
  • 8
  • 16
5
votes
3 answers

AWS Rekognition JS SDK Invalid image encoding error

Building a simple AWS Rekognition demo with React, using Getting Invalid image encoding error. let file = e.target.files[0]; let reader = new FileReader(); reader.readAsDataURL(file); reader.onloadend = () => { let…
1
2 3
20 21