How to recognize only digits, alpha or specific characters

Discussions about machine vision support in GdPicture.
Post Reply
oneuser
Posts: 10
Joined: Wed May 23, 2007 11:12 am

How to recognize only digits, alpha or specific characters

Post by oneuser » Thu Nov 13, 2008 11:31 am

Please help
i can not find any information about
Can recognize only digits, only alpha or only "white listed" characters.
This text is from your web site.
How to recognize digits only with ocr SDK.
Any information would be a big help.

Thanks

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

Re: How to recognize only digits, alpha or specific characters

Post by Loïc » Thu Nov 13, 2008 11:34 am

Hi,

See: https://www.gdpicture.com/guides/gdpicture/v5/gdpictur ... DoOCR.html

You can specify the char list through the sCharWhiteList parameter.

IE:

Code: Select all

'Recognize only digits
OCR = Imaging1.OCRTesseractDoOCR(TesseractDictionaryEnglish, "c:\dicpath\", "0123456789"

'Recognize only alpha lowercase
OCR = Imaging1.OCRTesseractDoOCR(TesseractDictionaryEnglish, "c:\dicpath\", "abcdefghijklmnopqrstuvwxyz")
Best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest