Example usage for com.amazonaws.services.rekognition.model DetectModerationLabelsResult getModerationLabels

List of usage examples for com.amazonaws.services.rekognition.model DetectModerationLabelsResult getModerationLabels

Introduction

In this page you can find the example usage for com.amazonaws.services.rekognition.model DetectModerationLabelsResult getModerationLabels.

Prototype


public java.util.List<ModerationLabel> getModerationLabels() 

Source Link

Document

Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.

Usage

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*/
}