Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Number of chars returned by OCRTesseractGetCharCount()

Support for GdPicture Tessaract Plugin.

Number of chars returned by OCRTesseractGetCharCount()

Postby eagleman » Tue Feb 16, 2010 11:11 am

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
eagleman
 
Posts: 27
Joined: Mon Jan 25, 2010 1:48 pm

Re: Number of chars returned by OCRTesseractGetCharCount()

Postby Loïc » Tue Feb 16, 2010 12:19 pm

Hi,

The OCRTesseractGetCharCount() doesn't count spaces.
You have to use the OCRTesseractGetCharSpaces with each characters to count spaces.

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4230
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Number of chars returned by OCRTesseractGetCharCount()

Postby eagleman » Tue Feb 16, 2010 2:22 pm

Thanks.

Eagleman
eagleman
 
Posts: 27
Joined: Mon Jan 25, 2010 1:48 pm


Return to GdPicture Tesseract OCR Engine Plugin

Who is online

Users browsing this forum: No registered users and 0 guests