Class ClarifaiImageLabeler

java.lang.Object
de.swa.fuh.aws.clarifai.ClarifaiImageLabeler

public class ClarifaiImageLabeler
extends java.lang.Object
Class to call Image labeling operations.
  • Constructor Summary

    Constructors 
    Constructor Description
    ClarifaiImageLabeler()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    com.clarifai.grpc.api.MultiOutputResponse getResponseOfClarifaiQuery​(java.io.File file)  
    boolean isSuccesfulQuery()  
    void setSuccesfulQuery​(boolean succesfulQuery)  

    Methods inherited from class java.lang.Object

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

    • ClarifaiImageLabeler

      public ClarifaiImageLabeler()
      Constructor. Creates Clarifaiconnector and established Connection. By default uses gPRC, because Clarifai recommends using this protocol with their service.
  • Method Details

    • getResponseOfClarifaiQuery

      public com.clarifai.grpc.api.MultiOutputResponse getResponseOfClarifaiQuery​(java.io.File file)
      Parameters:
      file - Image file.
      Returns:
      MultiOutputResponse. Data-structure designed by Clarifai. Holds all information of query.
    • isSuccesfulQuery

      public boolean isSuccesfulQuery()
    • setSuccesfulQuery

      public void setSuccesfulQuery​(boolean succesfulQuery)