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

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

Introduction

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

Prototype


public Float getConfidence() 

Source Link

Document

Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

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 .  j  a v a 2s . c  o  m
}