I'm using opencv + tesseract
First ! my Code is here!
char * text = NULL;
....
tesseract::TessBaseAPI api;
api.Init("tessdata PATH", "kor", tesseract::OEM_DEFAULT);
api.SetPageSegMode(tesseract::PSM_SINGLE_LINE);
...
text = api.GetUTF8Text();
cout << "OCR: " << text << endl; ★
ofstream outFile("output.txt");
outFile << text << endl; ■
outFile.close();
...
★ <- code display terrible result (unknown language)
but ■ <- output.txt file's text is perfect !
why ★ display terrible result ?
plz help :-)
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/dfe35528-0c3c-4f58-9fcd-39651b48e5ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.