public static void printLabels(PrintStream out,Path imagePath,List<EntityAnnotation> labels){
  out.printf("Labels for image %s:\n",imagePath);
  for (  EntityAnnotation label : labels) {
    out.printf("\t%s (score: %.3f)\n",label.getDescription(),label.getScore());
  }
  if (labels.isEmpty()) {
    out.println("\tNo labels found.");
  }
}

public static void printLabels ( PrintStream out , Path imagePath , List < EntityAnnotation > labels ) { out . printf ( "Labels for image %s:\n" , imagePath ) ; for ( EntityAnnotation label : labels ) { out . printf ( "\t%s (score: %.3f)\n" , label . getDescription ( ) , label . getScore ( ) ) ; } if ( labels . isEmpty ( ) ) { out . println ( "\tNo labels found." ) ; } }
prints the labels received from the vision api .
