Class ClarifaiResponseHandler

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

public class ClarifaiResponseHandler
extends java.lang.Object
Helper class to handle respondes of the clarifai API
  • Constructor Summary

    Constructors 
    Constructor Description
    ClarifaiResponseHandler​(com.clarifai.grpc.api.MultiOutputResponse response)  
  • Method Summary

    Modifier and Type Method Description
    Node createNode​(com.clarifai.grpc.api.Region region, float threshold, MMFG fv)  
    com.clarifai.grpc.api.Concept getConcept​(com.clarifai.grpc.api.Region region)  
    java.util.List<com.clarifai.grpc.api.Region> getRegionListOfResponse()
    Return List.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getRegionListOfResponse

      public java.util.List<com.clarifai.grpc.api.Region> getRegionListOfResponse()
      Return List.
      Returns:
    • getConcept

      public com.clarifai.grpc.api.Concept getConcept​(com.clarifai.grpc.api.Region region)
    • createNode

      public Node createNode​(com.clarifai.grpc.api.Region region, float threshold, MMFG fv)
      Parameters:
      region -
      threshold -
      fv -
      Returns:
      Node, which will be added to MMFG.