Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How to get the words' confidence by ocr engine ??
Started by XiaoWei at 08-05-2008 3:57. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  08-05-2008, 3:57
XiaoWei is not online. Last active: 8/5/2008 8:36:55 AM XiaoWei

Not Ranked
Joined on 08-05-2008
Posts 2
How to get the words' confidence by ocr engine ??
Reply Quote

Hi :

In leadtool ocr imaging api help document,  their are two api interfaces as follows :

1> L_LTDOC_API L_INT L_DocGetRecognizedCharacters(hDoc, nPageIndex, ppRecogChars, plCharsCount, uStructSize)

This function could return the chars' name and location and confidence .

2> L_LTDOC_API L_INT L_DocGetRecognizedWords (hDoc, nPageIndex, ppRecogWords, uStructSize, pnWordsCount)

This function could return the word' name and location , however corresponed confidence results .

Does leadtool ocr engine provide any interfaces or methods to catch the words' confidence ?  


   Report 
  08-05-2008, 6:29
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: How to get the words' confidence by ocr engine ??
Reply Quote
Every character has a flag that indicates whether it is in the middle of a word or not. If it is a end-of-word character, for example, this character and all previous ones (before a different break) are grouped into one word.
If you want to know which characters are part of which word, you can check the rectangle of the character to see if it is inside the rectangle of the word.

The high bit is not about the character itself, but about its presence in a word. This means if the high bit for a group of characters is 1, the word comprising them is high-confidence.

The rest of the bits are supposed to be from 0 to 100. The value 64 is from the OCR engine documentation by ScanSoft. The engine authors specified it, not LEAD. More information is available in the "Confidence reporting" help topic in our OCR API help file.

Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  08-07-2008, 23:03
XiaoWei is not online. Last active: 8/5/2008 8:36:55 AM XiaoWei

Not Ranked
Joined on 08-05-2008
Posts 2
Re: How to get the words' confidence by ocr engine ??
Reply Quote
Thank you much ! it works ![:)]
   Report 
Post
LEAD Support Fo... » Developer » OCR » Re: How to get the words' confidence by ocr engine ??

Powered by Community Server, by Telligent Systems