Class GoogleVisionResult
java.lang.Object
com.elpical.jclaro.admin.ws.server.GoogleVisionResult
Class to hold the result from Google Vision AI after image has been processed
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty Googlevision constructorGoogleVisionResult(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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the XML converted result from Google Vision AIbyte[]
Returns the image data as jpegvoid
setApiResult(String apiResult)
Sets the XML converted result from Google Vision AIvoid
setImageData(byte[] imageData)
Sets the Image data (image file)
-
Constructor Details
-
GoogleVisionResult
public GoogleVisionResult()Empty Googlevision constructor -
GoogleVisionResult
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
Returns the XML converted result from Google Vision AI- Returns:
- The XML converted result from Google Vision AI
-
setApiResult
Sets the XML converted result from Google Vision AI- Parameters:
apiResult
- The XML converted result from Google Vision AI
-