TessResultRenderer: Extend API to access status of renderer

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-10-18 19:18:20 +02:00
parent 9c2d1aad96
commit b0b8dfbc81

View File

@ -80,6 +80,9 @@ class TESS_API TessResultRenderer {
const char* file_extension() const { return file_extension_; }
const char* title() const { return title_.c_str(); }
// Is everything fine? Otherwise something went wrong.
bool happy() { return happy_; }
/**
* Returns the index of the last image given to AddImage
* (i.e. images are incremented whether the image succeeded or not)