List of usage examples for com.amazonaws.services.rekognition.model ModerationLabel getName
public String getName()
The label name for the type of unsafe content detected in the image.
From source file:org.nuxeo.vision.aws.AmazonRekognitionResponse.java
License:Apache License
public AmazonRekognitionResponse(DetectModerationLabelsResult response) { this.response = response; for (ModerationLabel label : response.getModerationLabels()) { labels.add(new TextEntity(label.getName(), label.getConfidence(), "en_US")); }/* ww w . j a v a 2 s . c o m*/ }