List of usage examples for com.amazonaws.services.rekognition.model ModerationLabel getConfidence
public Float getConfidence()
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
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 }