mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Add test for TessBaseAPI::ClearPersistentCache to unit tests
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
83a27d357a
commit
d4bcbbd6de
@ -74,6 +74,7 @@ void OCRTester(const char *imgname, const char *groundtruth, const char *tessdat
|
|||||||
EXPECT_EQ(gtText, outText) << "Phototest.tif OCR does not match ground truth for "
|
EXPECT_EQ(gtText, outText) << "Phototest.tif OCR does not match ground truth for "
|
||||||
<< ::testing::PrintToString(lang);
|
<< ::testing::PrintToString(lang);
|
||||||
api->End();
|
api->End();
|
||||||
|
api->ClearPersistentCache();
|
||||||
delete[] outText;
|
delete[] outText;
|
||||||
image.destroy();
|
image.destroy();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user