Loading...

ocr font size

Support for GdPicture Tessaract Plugin.

ocr font size

Postby ctn » Wed Apr 08, 2009 8:55 am

Hi

As I can see at my tests the minimum size of a font (e.g Arial) which ocr can recognize is around 12px. Smaller font could not be recognized correctly.
Is there a possibility to support smaller size than 12px?

Thank you
Br,
Toan
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

Re: ocr font size

Postby Loïc » Thu Apr 09, 2009 11:48 am

HI,

To performs OCR on tiny char you need to resize (scale) the image.

IE using ActiveX editions:

Code: Select all
 Object.ResizeImage(Object.GetWidth*2,Object.GetHeight*2,InterpolationModeHighQualityBicubic)


Using .NET editions:
Code: Select all
Object.Scale(m_ImageID, 200, InterpolationMode.InterpolationModeHighQualityBicubic)


Kind regards,

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

Re: ocr font size

Postby Slava » Thu Apr 09, 2009 11:57 am

Hi Loic,

I use oGdPicture.ScaleImage(200, InterpolationModeHighQualityBicubic) for this purpose in ActiveX edition. Is ResizeImage better of equivalent?

Kind regards,
Slava
Slava
 
Posts: 66
Joined: Fri Jun 22, 2007 4:43 pm

Re: ocr font size

Postby Loïc » Thu Apr 09, 2009 11:59 am

Hi Slava,

it is equivalent. I was talking about ResizeImage() instead of ScaleImage() because the ScaleImage() method is not included in all our toolkits...

Kind regards,

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

Re: ocr font size

Postby ctn » Thu Apr 09, 2009 2:16 pm

Ok. Thank you.
Br, Toan
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm


Return to GdPicture Tesseract OCR Engine Plugin

Who is online

Users browsing this forum: No registered users and 1 guest