Dn(a 26.06.2012 13:47, christy wrote / napísal(a):
> You can call the following from baseapi.cpp as :-
> Boxa* boxa = NULL;
> Pixa* pixa = NULL;
> Pix *pix = tesseract_->pix_binary();
tesseract_ is protected object so it is not available.
IMO it could be replaced with:
Pix *pix = api->GetThresholdedImage();
> tesseract::ImageFinder::FindImages(pix,&boxa,&pixa);
In 3.02 function was replaced/removed...

There is option to use FindImages(Pix* pix) from imagefind.h[1] but
unfortunately this header file is not included to installed files...
[1]
https://code.google.com/p/tesseract-ocr/source/browse/trunk/textord/imagefind.h#44

> Hope this helps..
>
>
> On Apr 30, 10:22 pm, Eslam Mohamed <mashamish...@yahoo.com> wrote:
>> please, provide me with a code sample on how to use this method i have the 
>> same problem, i'm suffering from removing non text ares manually,thanks
>>
>>
>>
>>
>>
>>> ________________________________
>>> From: Pavel Mazniker <pmazni...@gmail.com>
>>> To: tesseract-ocr@googlegroups.com
>>> Sent: Monday, April 30, 2012 6:15 AM
>>> Subject: Tesseract remove non-text regions
>>> Hi,
>>>
>>> I work on text recognition in complex image that contains also not-textual 
>>> regions.
>>>
>>> There is remove_nontext_regions function in osdetect.cpp
>>>
>>> Is it called "automatically" when Recognize(...) function called or should 
>>> I call the function explicitly before performing recognition in order to 
>>> increase accuracy ?
>>>
>>> The signature of the function:
>>>
>>> voidremove_nontext_regions(tesseract::Tesseract*tess,BLOCK_LIST*blocks, 
>>> TO_BLOCK_LIST*to_blocks){
>>>
>>> 1. Does it affect image set to tess before ? if yes, then should user 
>>> expect non-textual regions removed after call to the function ?
>>>
>>> 2. What should be putted to blocks and to_blocks parameters ?
>>>
>>> Thanks.
>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "tesseract-ocr" group.
>>> To post to this group, send email to tesseract-ocr@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> tesseract-ocr+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/tesseract-ocr?hl=en- Hide quoted text -
>> - Show quoted text -


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

Reply via email to