Skip to content

Instantly share code, notes, and snippets.

@gusdelact
Created July 25, 2023 02:50
Show Gist options
  • Save gusdelact/8894751586de453318b8201fefe79600 to your computer and use it in GitHub Desktop.
Save gusdelact/8894751586de453318b8201fefe79600 to your computer and use it in GitHub Desktop.
import boto3
client = boto3.client('rekognition')
id ='4abb12e92635247020465ea9ff0e86206096975f378c6954f105d4d5a6b785a7'
response = client.get_label_detection(JobId=id)
etiquetas=response['Labels']
for i,etiqueta in enumerate(etiquetas,1) :
print(f"Etiqueta {i}")
print(f"Nombre {etiqueta['Label']['Name']}")
print(f"Timestamp {etiqueta['Timestamp']}")
print(f"Confiabilidad {etiqueta['Label']['Confidence']}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment