ImageGear .NET
Character Set with No Language Selection

You can specify a character set with no language selection: "a, A, b, B, c, C, d, D, e, E" as the only validated characters. This example illustrates a rare case, such as you have a page containing zones with a very restricted number of characters to be recognized, e.g., in recognizing forms or multiple-choice test papers. In this case the application doesn't enable any language, but instead defines the few characters necessary as LanguagesPlus characters. This means there is no language selection and the Language environment consists solely of the individually defined LanguagesPlus characters. Also note that there is no filtering and no locally (zone) validated FilterPlus characters, in this case, the Language environment fully defines the Character Set and it will be valid for the defined zone, and for others inserted with an identical zone structure.

C#
Copy Code
igRecognition.Recognition.LanguageEnabled.DisableAll();
igRecognition.Recognition.FilterPlus = "aAbBcCdDeE";
ImGearRecZone igRecZone = new ImGearRecZone();
igRecZone.Rect.CopyFrom(new ImGearRectangle(igRecPage.Image.Width, igRecPage.Image.Height));
igRecZone.FillingMethod = ImGearRecFillingMethod.OMNIFONT;
igRecZone.RecognitionModule = ImGearRecRecognitionModule.AUTO;
igRecZone.Filter = ImGearRecFilter.ALL | ImGearRecFilter.PLUS;
igRecZone.Type = ImGearRecZoneType.FLOW;
igRecPage.Zones.Add(igRecZone); 
VB .NET
Copy Code
igRecognition.Recognition.LanguageEnabled.DisableAll()
igRecognition.Recognition.FilterPlus = "aAbBcCdDeE"
Dim igRecZone As New ImGearRecZone()
igRecZone.Rect.CopyFrom(New ImGearRectangle(igRecPage.Image.Width, igRecPage.Image.Height))
igRecZone.FillingMethod = ImGearRecFillingMethod.OMNIFONT
igRecZone.RecognitionModule = ImGearRecRecognitionModule.AUTO
igRecZone.Filter = ImGearRecFilter.ALL Or ImGearRecFilter.PLUS
igRecZone.Type = ImGearRecZoneType.FLOW
igRecPage.Zones.Add(igRecZone)

In the above case the zone list is not empty, so the Recognize Method will not perform auto-decomposition (auto-zoning), but will act on the inserted zone(s).

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback