Description
Returns true if there was an error, false otherwise. Also returns false if the image has not been resolved yet
Parameters
This method takes no parameters
Return Value
True if there was an error, false otherwise
Change Log
Version |
Description |
5.5.29a |
Available in all editions. |
import com.screenscraper.util.images.*;
// Assuming an ImageDecoder was created in a different location and saved in "IMAGE_DECODER"
ImageDecoder decoder = session.getVariable("IMAGE_DECODER");
DecodedImage result = decoder.decodeFile("someFile.jpg");
if(result.wasError())
{
session.logWarn("Error converting image to text: " + result.getError());
}
else
{
session.log("Decoded Text: " + result.getResult());
}
// If the result was bad
result.reportAsBad();