hi
I use tesseract 3.02
when I use mode PSM_AUTO_OSD,
the orientation finder works just fine: 
      tesseract::PageIterator* it = api->AnalyseLayout();

    tesseract::Orientation orientation;

    tesseract::WritingDirection direction;

    tesseract::TextlineOrder order;

    float deskew_angle;


    it->Orientation(&orientation, &direction, &order, &deskew_angle);

    printf("Orientation: %d;\nWritingDirection: %d\nTextlineOrder: %d\n" \

           "Deskew angle: %.4f\n",

           orientation, direction, order, deskew_angle);


When I use PSM_OSD_ONLY, the orientation finder doesn't work.

any ideas?

do I have to upgrade to Tesseract 3.04?




On Thursday, March 1, 2012 at 4:26:54 AM UTC-5, Chirag Jain wrote:

Dear Sir, 
>
> I download tesseract-ocr-3.01-win32-portable.zip from the following 
> link 
> http://code.google.com/p/tesseract-ocr/downloads/list 
>
> I am finding it difficult to use OSD feature of Tesseract OCR. 
>
> I used the following command: 
>
> tesseract.exe  phototest.tif  test_osd -psm 0 
>
> It generated test_osd.txt as an output but it was an empty file. 
>
> Kindly let me know if I am missing some step. 
>
> Thanks and Regards, 
> Chirag Jain

-- 
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 https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/b0b16bd4-b5cf-457d-94a8-065a3e38c0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to