ocr font size

Discussions about machine vision support in GdPicture.
Post Reply
ctn
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

ocr font size

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ocr font size

Post by 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

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

Re: ocr font size

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ocr font size

Post by 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

ctn
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

Re: ocr font size

Post by ctn » Thu Apr 09, 2009 2:16 pm

Ok. Thank you.
Br, Toan

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests