Hi,
The function OCRTesseractGetCharCount() returns a number which is less then the string length of the ocr-ed text.
What I found out is that OCRTesseractGetCharCount() returns the total number of characters without the number of spaces.
So the text "Hello there" is actually 11 chars, but OCRTesseractGetCharCount() returns 10.
Is this correct?
Please advise.
Eagleman
Number of chars returned by OCRTesseractGetCharCount()
Re: Number of chars returned by OCRTesseractGetCharCount()
Hi,
The OCRTesseractGetCharCount() doesn't count spaces.
You have to use the OCRTesseractGetCharSpaces with each characters to count spaces.
With best regards,
Loïc
The OCRTesseractGetCharCount() doesn't count spaces.
You have to use the OCRTesseractGetCharSpaces with each characters to count spaces.
With best regards,
Loïc
Re: Number of chars returned by OCRTesseractGetCharCount()
Thanks.
Eagleman
Eagleman
Who is online
Users browsing this forum: No registered users and 1 guest