How to

Build Tesseract
This is the page where you will find information about procedure of building tesseract on Windows OS.


 * 1) Download Setup for tesseract and open with VS2012. If you have higher version of Visual Studio then it will ask to upgrade Project files of tesseract. press yes.
 * 2) You are ready to build tesseract, press build and wait for process to be finished.
 * 3) make sure that tesseract is startup project in solution explorer.
 * 4) Go to Debug>properties>Configuration properties>Debugging> here provide project directory and command line arguments.
 * 5) press Debug.

That's it you have compiled tesseract successfully.

Thresholding
call GetThresholdedImage and pixWrite after SetImage in baseapi.cpp. probably at line number 914.

like...

PIX* thresholded = GetThresholdedImage; pixWrite("out2.jpg", thresholded, 3);

Get Box file
Call GetRegions and boxaWrite after Recognize in baseapi.cpp just before failed = Recognize(NULL) < 0;

like: BOXA* layout = GetRegions(NULL); boxaWrite("test1.box", layout);

Page layout Analysis with tool
Use command line "tesseract -psm N hocr

note: if output file created by tesseract is .hocr then simply rename it with .xml

Run Downloaded tool, open xml file generated by tesseract, browse image. you well see page layout analysis. Tool can be found at resources page.