Add test for TessBaseAPI::ClearPersistentCache to unit tests

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-05-17 09:27:41 +02:00
parent 83a27d357a
commit d4bcbbd6de

View File

@ -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();
} }