Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

languagecharacterplusfilter applied only to certain zones
Started by derevell at 07-19-2007 4:37. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  07-19-2007, 4:37
derevell is not online. Last active: 12/28/2007 3:20:14 AM derevell

Top 50 Posts
Joined on 11-16-2006
Posts 52
languagecharacterplusfilter applied only to certain zones
Reply Quote
I need to have different languagecharacterplusfilter's applied to different zones on a page. Example, I have a persons name that will need ABCDEFGHIJKLMNOPQRSTUVWXYZ-,.
and then I have phone numbers that need 0123456789-()
I have others, but I don't see any properties at the zone level to set the languagecharacterplusfilter. It looks like the languagecharacterplusfilter is global. Is that true? If there is a way to apply a custom filter on a zone, can you post up some sample code in C#?
Thanks,
Dave
   Report 
  07-20-2007, 15:26
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,806
Re: languagecharacterplusfilter applied only to certain zones
Reply Quote
The LanguageCharacterPlusFilter and similar filters are global.  The zones use the RasterDocumentZoneData.CharacterFilter to filter the text inside the zone, and one of those enumerations is Plus which uses the LanguageCharacterPlusFilter property. 

You can use the RasterDocumentCharacterFilters.Numbers to do a combination of digits and whatever is in your LanguageCharacterPlus property.

Therefore the best you could do is two custom types of filters on the same image.  Otherwise you are limited to the other non-custom values of the RasterDocumentCharacterFilters enumeration.

Greg Ross
LEADTOOLS Technical Support
   Report 
  07-20-2007, 19:22
derevell is not online. Last active: 12/28/2007 3:20:14 AM derevell

Top 50 Posts
Joined on 11-16-2006
Posts 52
Re: languagecharacterplusfilter applied only to certain zones
Reply Quote
So to clarify:
I could use the LanguageCharacterPlus property to add "-/:," and then use the RasterDocumentCharacterFilters.Numbers on the zone to handle 01/25/1975 12:34
??
Is the Alpha do CAPS and lower case and Plus? So if I had a name: Doe, Mary-Jo Jr
would that work the same way?
It would be nice to knock this down to a zone by zone basis since ea zone has different types of data. Maybe even allow regular expressions. Any chance of this feature in another future version?
Dave
   Report 
  07-23-2007, 11:52
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,806
Re: languagecharacterplusfilter applied only to certain zones
Reply Quote
Yes and Yes

I could submit a feature request, but your request at this point is a little bit vague.  Could you explain in more detail what you are looking for?

Greg Ross
LEADTOOLS Technical Support
   Report 
  07-23-2007, 16:33
derevell is not online. Last active: 12/28/2007 3:20:14 AM derevell

Top 50 Posts
Joined on 11-16-2006
Posts 52
Re: languagecharacterplusfilter applied only to certain zones
Reply Quote
Greg,

The request would be to have character filters defined individually for each zone. So if I have 10 different zones on page, I can have ea zone have its own character filter. Example zone1.characterFilter = "C0123456790"; zone2.characterFilter = "0123456789/:" etc.
It would also be nice to take it a step further and be able to define a regular expression. I.E. (xxx)xxx-xxxx for a phone # so that the ( doesn't OCR as / or I or something.
Thanks, I'm sure this would help out those of us processing forms quite a bit.

Dave
   Report 
  Yesterday, 11:07
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,806
Re: languagecharacterplusfilter applied only to certain zones
Reply Quote
I have submitted a feature request regarding this functionality.  For your reference, the feature request number is 6027IDT.  If chosen for implementation, most feature requests are added at major releases (16, 17 etc.).

If this is an urgent need, please contact our custom development department by visiting http://www.leadtools.com/devservices/ for a quote.
Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » OCR » languagecharacterplusfilter applied only to certain zones

Powered by Community Server, by Telligent Systems