How to check the effect of setting a variable on image?

32 views
Skip to first unread message

Azka Gilani

unread,
Apr 17, 2017, 9:23:12 AM4/17/17
to tesseract-ocr
Hey.
I am a newbie in tesseract. I have set one parameter while using SetVariable. how can i see its effect on image.
For example, i am trying to detect table from image. I have set ("textord_tablefind_recognize_tables", "true") but now how can i see the effect of that parameter on my image? or how can i see the detected region?

api->SetVariable("textord_show_tables", "true");
api
->SetVariable("textord_tablefind_recognize_tables", "true");


tesseract
::PageIterator *ri = api->GetIterator();
tesseract
::PageIteratorLevel level = tesseract::RIL_BLOCK;

if (ri != 0) {
 
do {
 cout
<<bname <<" "<<ri->BlockType()<<endl;

 
} while (ri->Next(level));
}

Reply all
Reply to author
Forward
0 new messages