1 Answer
- Newest
- Most votes
- Most comments
1
Greetings from Australia. 🦘You can download the list of all possible labels returned by Rekognition on this page in the documentation. When you extract the ZIP file, you will find a file called AmazonRekognitionLabelCategories_v3.0.csv
. Take a look at this file to decide which categories you want to include. I suggest "Animals and Pets", "Person Description", and perhaps "Nature and Outdoors". You may need to play around with the categories until you get the result you are looking for.
Then, you can restrict the labels returned by Rekognition to only the categories you want to include.
response = client.detect_labels(
Image={'S3Object':{'Bucket':bucket,'Name':photo}},
"Settings": {
"GeneralLabels": {
"LabelCategoryInclusionFilters": ["Animals and Pets", "Person Description", "Nature and Outdoors"],
},
}
)
Rekognition also supports LabelCategoryExclusionFilters
or LabelInclusionFilters
or LabelExclusionFilters
. See this page for more detail. I hope this helps!
answered 15 days ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
It's Australia for the win! :-) Thanks very much. This helps and allows me to get exceptionally granular as to what I need out of Rekognition. I appreciate the help!