Class GoogleVisionResult

java.lang.Object
com.elpical.jclaro.admin.ws.server.GoogleVisionResult

public class GoogleVisionResult extends Object
Class to hold the result from Google Vision AI after image has been processed
  • Constructor Details

    • GoogleVisionResult

      public GoogleVisionResult()
      Empty Googlevision constructor
    • GoogleVisionResult

      public GoogleVisionResult(byte[] imageData, String apiResult)
      Constructor with Image data from an image file (jpeg data) and the API result from Google Vision converted as XML data
      Parameters:
      imageData - Image data from an image file (jpeg data)
      apiResult - XML converted result
  • Method Details

    • getImageData

      public byte[] getImageData()
      Returns the image data as jpeg
      Returns:
      The image data as jpeg
    • setImageData

      public void setImageData(byte[] imageData)
      Sets the Image data (image file)
      Parameters:
      imageData - The Image data (image file)
    • getApiResult

      public String getApiResult()
      Returns the XML converted result from Google Vision AI
      Returns:
      The XML converted result from Google Vision AI
    • setApiResult

      public void setApiResult(String apiResult)
      Sets the XML converted result from Google Vision AI
      Parameters:
      apiResult - The XML converted result from Google Vision AI