Example usage for com.amazonaws.services.rekognition.model ModerationLabel getName

List of usage examples for com.amazonaws.services.rekognition.model ModerationLabel getName

Introduction

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

Prototype


public String getName() 

Source Link

Document

The label name for the type of unsafe content detected in the image.

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"));
    }/*  ww  w . j  a  v a 2  s .  c o m*/
}