Page 1 of 1

OCRTesseractGetCharConfidence

Posted: Sat Nov 08, 2008 2:45 pm
by amp
Hi,


I don't understand how OCRTesseractGetCharConfidence works
it should return 0 - 100 !!


Dim charString As String
Dim iConfidence As Long

sOCR = Imaging1.OCRTesseractDoOCR(TesseractDictionaryEnglish, App.Path & "\OCR")

charString = ""
For i = 1 To Imaging1.OCRTesseractGetCharCount
iConfidence = Imaging1.OCRTesseractGetCharConfidence(i)
charString = Chr(Imaging1.OCRTesseractGetCharCode(i))
Next i

Returns -----
'i=1 charString = "R" iConfidence = 5100
'i=12 charString = "m" iConfidence = 3643
'i=17 charString = "3" iConfidence = 1500

Regards,
Richard

Re: OCRTesseractGetCharConfidence

Posted: Sat Nov 08, 2008 5:31 pm
by Loïc
Hi Richard,

You are right. This bug will be solved into the next minor release (for Monday).

Best regards,

Loïc