Rekognition image matching with overall parameters

0

Greetings from Vancouver Island.

I'm having trouble with the rekognition documentation with respect to matching 'like' images. I've got finding/matching faces, understandc collection ids, etc. What I want to do is match one photo to a set of photos that are 'generally' like the source. So if you have pictures of a walk in the wood with pictures from the beach, i want to select a picture form the woods and not see the beach ones. Using python, boto3, etc. If someone could point me to the relevant chucnk of the documentation, I'll try to figure it out.

Thanks in advance

Rick

profile picture
asked a month ago109 views
1 Answer
1
Accepted Answer

To match similar non-face images using Amazon Rekognition and Python, focus on the DetectLabels function. This API action identifies objects, scenes, and concepts in images.

How to :

  • Set up your AWS SDK and create a Rekognition client in Python.
  • Use DetectLabels to analyze each image, obtaining labels that describe the image's contents.
  • Filter the images by reviewing these labels and their confidence scores, keeping those that match your criteria (e.g., forest scenes but not beach scenes).
profile picture
EXPERT
answered a month ago
  • I appreciate the quick answer. This seems to be a very good way to great granular information regarding an image. If you have a scenario with a 'beach' photo properly handling labels and you want to search for 'like' photos in a pile of, say 5,000, I assume step one will be to create a db that captures what Rekog finds for all 5,000 images and then when doing the 'like this' zip through that db looking for the labels as you described. Should be fun to code up. Any other thoughts, let me know. Thanks again!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions