Note that there are some explanatory texts on larger screens.

plurals
  1. POcharacter-wise confidence values using tesseract 3.01
    primarykey
    data
    text
    <p>i executed the following code to generate character-wise confidence values:</p> <pre><code>int main(int argc, char **argv) { const char *lang="eng"; const PIX *pixs; if ((pixs = pixRead(argv[1])) == NULL) { cout &lt;&lt;"Unsupported image type"&lt;&lt;endl; exit(3); } TessBaseAPI api; api.SetVariable("save_blob_choices", "T"); api.SetPageSegMode(tesseract::PSM_SINGLE_WORD ); api.SetImage(pixs); int rc = api.Init(argv[0], lang); api.Recognize(NULL); ResultIterator* ri = api.GetIterator(); if(ri != 0) { do { const char* symbol = ri-&gt;GetUTF8Text(RIL_SYMBOL); if(symbol != 0) { float conf = ri-&gt;Confidence(RIL_SYMBOL); cout&lt;&lt;"\nnext symbol: "&lt;&lt; symbol &lt;&lt; " confidence: " &lt;&lt; conf &lt;&lt;"\n" &lt;&lt;endl; } delete[] symbol; } while((ri-&gt;Next(RIL_SYMBOL))); } return 0; } </code></pre> <p><a href="http://www.google.com/imgres?hl=en&amp;client=ubuntu&amp;hs=oYw&amp;sa=X&amp;channel=fs&amp;biw=1848&amp;bih=947&amp;tbm=isch&amp;prmd=imvnso&amp;tbnid=9rXmU4v9Lv-05M%3a&amp;imgrefurl=http://www.sostars.com/nb-strange-font/&amp;docid=tR10YRmNr592bM&amp;imgurl=http://www.sostars.com/wp-content/uploads/2009/02/nb-strange.jpg&amp;w=477&amp;h=144&amp;ei=pU_gT8z2F8O4rAeXo8iEDQ&amp;zoom=1&amp;iact=rc&amp;dur=290&amp;sig=107305962295400674833&amp;page=1&amp;tbnh=57&amp;tbnw=189&amp;start=0&amp;ndsp=54&amp;ved=1t:429,r:29,s:0,i:165&amp;tx=61&amp;ty=26" rel="nofollow">link to image</a></p> <p>the output obtained for the above image was:</p> <blockquote> <p>next symbol: N confidence: 72.3563 next symbol: B confidence: 72.3563 </p> <p>next symbol: E confidence: 69.9937 next symbol: T confidence: 69.9937<br> next symbol: R confidence: 69.9937 next symbol: A confidence: 69.9937<br> next symbol: N confidence: 69.9937 next symbol: G confidence: 69.9937<br> next symbol: - confidence: 69.9937 next symbol: I confidence: 69.9937 </p> </blockquote> <p>As is evident, the confidence values for characters belonging to the same word is the same. Is this the expected output? Shouldn't the confidence values be different for each character? I tried executing the code for a word in which each character was in different font style..and yet, the confidence value was the same for characters belonging to the same word.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload