Community

Reading data with separators in between

I am having difficulty in fixing this issue of reading fee as the separators lines are also being read as number 1 or alphabets like j or even characters like ! . is there any solution to this 

Was this article helpful?

0 out of 0 found this helpful

Comments

4 comments

  • Avatar
    Denis Gusak

    Hi Alroy!

    I can suggest using the methods of the ImageProcessingTools object to distort the image so that FCE no longer recognizes delimiters as characters. For example, I was able to get rid of separators on your image with the following code:

    IImageProcessingTools ipt = engineLoader.Engine.CreateImageProcessingTools();
    IImageFile imageFile = ipt.OpenImageFile(@"D:\362e1867-757a-4d5f-9a6f-a9c9014d331e_fee.jpg");
    IImage image = imageFile.OpenImagePage(0);
    image = ipt.EqualizeBrightness(image);
    image = ipt.Binarize(image, BinarizationModeEnum.BM_Default, false, false, 0);
    image = ipt.RemoveGarbage(image, 2);

     Hope it helps.

    0
  • Avatar
    alroy monis

    thank you Denis i will look into this solution 

    0
  • Avatar
    alroy monis

    Hey Denis,

    i am a noob where do I use this code in flexicapture

    Thanks 

     

     

     

     

     

    0
  • Avatar
    Denis Gusak

    Hi Alroy,

    You can try it in Hello C# sample. Just put this code after processor.AddDocumentDefinitionFile(...) call and replace processor.AddImageFile(...) with processor.AddImage(image)

    0

Please sign in to leave a comment.