Maybe you could try to use the ResultIterator.
Am Freitag, 18. April 2014 09:37:03 UTC+2 schrieb Vipul Aggarwal:
>
> Running tesseract through terminal leads to good result, but something
> might be wrong in my c++ implementation.
> Please respond!
>
> On Thursday, April 10, 2014 9:33:20 PM UTC+5:30, Vipul Aggarwal wrote:
>>
>> I am working on images with single character.
>> However, tesseract is unable to recognize them.
>>
>> This is how I initialized it:
>> tess.Init(NULL, "eng", tesseract::OEM_DEFAULT);
>> tess.SetPageSegMode(tesseract::PSM_SINGLE_BLOCK_VERT_TEXT);
>> tess.SetVariable("tessedit_char_whitelist", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
>>
>> This is what i do for recognition:
>> tess.SetImage((uchar*)rotatedImage.data, rotatedImage.cols,
>> rotatedImage.rows, 1, rotatedImage.cols);
>> char* out = tess.GetUTF8Text();
>>
>>
>> I am attaching images
>>
>
--
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/95e4a129-cf70-492e-b887-26831619ad5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.