Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

ICR

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, May 30, 2006 2:05:39 PM(UTC)

iskoap  
iskoap

Groups: Registered
Posts: 4


Handwriting recognition does not recognize spaces (" "). What is the work around in my program?

Thank you.

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, June 4, 2006 2:07:33 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

Try to resolve this issue by setting the RasterOcrZoneData.CharacterFilter property of the zone(s) to RasterOcrCharacterFilter.All, the RasterOcrZoneData.Type property to RasterOcrZoneType.FlowText and the RasterOcrZoneData.FillMethod property to RasterOcrFillMethod.HandPrint.

If you adding the zones by using the RasterOcr.AddZone method, you need to set the properties before adding the zone as follows:
+------------------------------+
Dim zoneData As RasterOcrZoneData = New RasterOcrZoneData
zoneData.Rectangle = New Rectangle(0, 0, _rasterOcr.GetPageInfo(0).Width, _rasterOcr.GetPageInfo(0).Height)
zoneData.FillMethod = RasterOcrFillMethod.HandPrint
zoneData.RecognizeModule = RasterOcrRecognizeModule.RerPrinted
zoneData.CharacterFilter = RasterOcrCharacterFilter.All
zoneData.Type = RasterOcrZoneType.FlowText
Try
_rasterOcr.AddZone(0, 0, zoneData)
Messager.ShowInformation(Me, "The specified Zone inserted successfully")
Catch ex As Exception
Messager.ShowError(Me, ex)
End Try
+------------------------------+

But if you are using the RasterOcr.FindZones method, you need to call the RasterOcr.UpdateZone Method after calling the RasterOcr.FindZones Method for each zone, and then change the properties of the zones to the above values.
The code will be something as follows:
+-----------------------------+
private void button8_Click(object sender, System.EventArgs e)
{
//******* OCR Initialization ********//
//******** OCR Startup *************//            
//******** Add Page ****************//
//******** Find the zones *********//
ocr.FindZones(0);
MessageBox.Show("Zones num = "+  RasterOcr.GetZonesCount(0).ToString());
for(int x = 0; x < RasterOcr.GetZonesCount(0)-1;x++)
{
rasterOcrZoneData.CharacterFilter = RasterOcrCharacterFilter.Alpha;
rasterOcrZoneData.FillMethod = RasterOcrFillMethod.HandPrint
rasterOcrZoneData.RecognizeModule = RasterOcrRecognizeModule.RerPrinted
rasterOcrZoneData.CharacterFilter = RasterOcrCharacterFilter.All
rasterOcrZoneData.Type = RasterOcrZoneType.FlowText

RasterOcr.UpdateZone(0,x,rasterOcrZoneData);
}
//******** OCR Recognition *********//
try
{
ocr.Recognize(0, 1);
ocr.SaveResultsToFile(@"c:\test.doc");
}
catch(Exception er)
{
MessageBox.Show(er.Message.ToString());
}            

ocr.ShutDown();            
}
}
+-----------------------------+

Please try the above instructions and let me know how it goes.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.052 seconds.