I'd like to use the layout analysis feature of tesseract in my own c++
project.

- A.) Is there any sample code available on how to use layout
analysis?

- B.) I have some trouble compiling my project. This happens only when
I am trying to access some iterator class like PageIterator. OCR is
working fine so far. Anyway, for the following code I get 2 unresolved
external symbol errors:

tesseract::PageIterator* it = api.AnalyseLayout();
it->Begin();

tesseract::Orientation orient;
tesseract::WritingDirection dir;
tesseract::TextlineOrder order;
float f;

it->Orientation(&orient, &dir, &order, &f);

1>main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall tesseract::PageIterator::Orientation(enum
tesseract::Orientation *,enum tesseract::WritingDirection *,enum
tesseract::TextlineOrder *,float *)" (?
Orientation@PageIterator@tesseract@@QAEXPAW402@PAW4WritingDirection@2@PAW4TextlineOrder@2@PAM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall tesseract::PageIterator::Begin(void)" (?
Begin@PageIterator@tesseract@@QAEXXZ)

I assume some library is missing. However I don't what else I have to
do, as I've added already these libraries to my linker:

libtesseract.lib
textord.lib
wordrec.lib
classify.lib
dict.lib
viewer.lib
ccutil.lib
ccstruct.lib
cutil.lib
cube.lib
image.lib
ccmain.lib
liblept168.lib
libtesseract_tessopt.lib
libtesseract_training.lib
neural_networks.lib

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to