Example usage for com.amazonaws.services.rekognition.model DetectLabelsResult getLabels

List of usage examples for com.amazonaws.services.rekognition.model DetectLabelsResult getLabels

Introduction

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

Prototype


public java.util.List<Label> getLabels() 

Source Link

Document

An array of labels for the real-world objects detected.

Usage

From source file:org.nuxeo.vision.aws.AmazonRekognitionResponse.java

License:Apache License

public AmazonRekognitionResponse(DetectLabelsResult response) {
    this.response = response;
    for (Label label : response.getLabels()) {
        labels.add(new TextEntity(label.getName(), label.getConfidence(), "en_US"));
    }//from w w w .  j ava 2  s  . c  o  m
}