mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Use groundtruth from testing directory
This commit is contained in:
parent
0ed7317c38
commit
f7284569ff
@ -25,7 +25,7 @@ TEST(TesseractTest, ApiExample)
|
||||
{
|
||||
char *outText;
|
||||
std::locale loc("en_US.UTF-8"); // You can also use "" for the default system locale
|
||||
std::ifstream file("testfiles/phototest.txt");
|
||||
std::ifstream file("../testing/phototest.txt");
|
||||
file.imbue(loc); // Use it for file input
|
||||
std::string gtText((std::istreambuf_iterator<char>(file)),
|
||||
std::istreambuf_iterator<char>());
|
||||
|
Loading…
Reference in New Issue
Block a user