Disabling Scrollview at runtime

47 views
Skip to first unread message

Eduardo Grosclaude

unread,
Aug 1, 2015, 10:40:31 AM8/1/15
to tesseract-ocr
Hello, 
I've sucessfully compiled and run a quick-and-dirty OpenCV application (let's call it app A) in C++ using Tesseract. 
Later, I refactored my code into app B and used a 
tesseract::TessBaseAPI tess;
member into one of my classes there. 
When running this B app, first thing the program does, Scrollview tries to initialize --unsuccessfully, leading to the eternal Waiting for server... display. 
However, in app A, where tess is just a local variable, there's no such behavior. Neither in CLI usage of Tesseract, for that matter.
I think I don't want Scrollview. I read in the forums that recompiling Tesseract is the suggested workaround. Shouldn't this be an opt-in for the sake of precompiled dev packages? 
Can't this be avoided? How should I instantiate TessBaseAPI objects so that I don't unwishfully call Scrollview? 
Thank you in advance!

Jack Fan

unread,
Aug 20, 2015, 10:47:35 AM8/20/15
to tesseract-ocr
Scrollview will only run if any variable for display debug is set. (like 

"textord_tabfind_show_partitions")


You can also just define GRAPHICS_DISABLED when you build tesseract.
e.g. -DGRAPHICS_DISABLED

Eduardo Grosclaude於 2015年8月1日星期六 UTC+8下午10時40分31秒寫道:
Reply all
Reply to author
Forward
0 new messages