Class RekognitionImageLabler_JavaV2

java.lang.Object
de.swa.fuh.aws.awsrekognition.RekognitionImageLabler_JavaV2

public class RekognitionImageLabler_JavaV2
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    RekognitionImageLabler_JavaV2​(java.io.File file)
    Uses default threshold and maxLabels Parameter
    RekognitionImageLabler_JavaV2​(java.io.File file, float threshold, int maxLabels)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<software.amazon.awssdk.services.rekognition.model.Label> detectLabels()
    Sends query for labeling and detects labels.
    int getMaxLabels()
    Returns current maxLabels amount.
    float getThreshold()
    Returns current set threshold for label to be processed.
    void setImageSourceBytes​(java.io.File file)
    Sets bytestreeam for upload to labeling.
    void setMaxLabels​(int maxLabels)
    Setter for maxLabels.
    void setThreshold​(float threshold)
    Setter for threshold.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RekognitionImageLabler_JavaV2

      public RekognitionImageLabler_JavaV2​(java.io.File file, float threshold, int maxLabels)
      Parameters:
      file - Image file
      threshold - Set threshold for confidence of label. By default 50f.
      maxLabels - Set amount of labels per query. by default 20.
    • RekognitionImageLabler_JavaV2

      public RekognitionImageLabler_JavaV2​(java.io.File file)
      Uses default threshold and maxLabels Parameter
      Parameters:
      file - Imagefile
  • Method Details

    • setImageSourceBytes

      public void setImageSourceBytes​(java.io.File file)
      Sets bytestreeam for upload to labeling.
      Parameters:
      file - Image file
    • detectLabels

      public java.util.List<software.amazon.awssdk.services.rekognition.model.Label> detectLabels()
      Sends query for labeling and detects labels.
      Returns:
      List of Labels.
    • setMaxLabels

      public void setMaxLabels​(int maxLabels)
      Setter for maxLabels. By default 20.
      Parameters:
      maxLabels -
    • getMaxLabels

      public int getMaxLabels()
      Returns current maxLabels amount.
      Returns:
      int of maxLabels per query.
    • setThreshold

      public void setThreshold​(float threshold)
      Setter for threshold. Which minimum confidence should a label have to be processed. By defualt 50f.
      Parameters:
      threshold - float variable
    • getThreshold

      public float getThreshold()
      Returns current set threshold for label to be processed.
      Returns:
      float