List of usage examples for com.amazonaws.services.rekognition.model DetectModerationLabelsResult getModerationLabels
public java.util.List<ModerationLabel> getModerationLabels()
Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
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")); }/*from w ww . ja v a 2s . c om*/ }