ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Barcode scanner recognizes non existing I2of5 bar codes in image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

matjazu

Slovenia
2 Posts

Posted - May 19 2022 :  06:43:22  Show Profile  Reply
Hi.

We're using TIEVisionBarCodeScanner to recognize bar codes an QR code images in scanned documents. Usually there is one Code39, one QR code and optionally one I2of5 bar code. The problem is that scanner "recognizes" bar code I2of5 on some images that don't contain this bar code. I have attached a simple program and some sample files with this kind of images. We only have problem with JPG image, if we convert image to TIF, scanner doesn't recognize this (phantom) bar code.
For demonstration purposes attachment contains:
- image 000001 (jpg and tif): this is file that contains I2of5 bar code (scanner recognizes that correctly)
- other images have the same names as bar code that is incorrectly recognized.

Thanks for help,


Matjaz Urank

attach/matjazu/20225196423_ImageEnBarCodeTest.zip
1618.3 KB

MU

xequte

38182 Posts

Posted - May 19 2022 :  14:54:44  Show Profile  Reply
Hi Matjuz

It looks like a flaw in the Zbar algorithm, you might want to skip null sized results.

    for i := 0 to m_symbols.size() - 1 do
    begin
      if Exclude_Dubious_Results and
         ( TIEVisionBarCodeSymbol( m_symbols.getObj(i) ).getBoundingBox().Width <= 1 ) and
         ( TIEVisionBarCodeSymbol( m_symbols.getObj(i) ).getBoundingBox().Height <= 1 ) then
        Continue;

      n := TreeViewResults.Items.AddChild(nil, IntToStr(i));
      s := TIEVisionBarCodeSymbol( m_symbols.getObj(i) );
      ...
      ...
      ...


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

matjazu

Slovenia
2 Posts

Posted - May 20 2022 :  07:16:34  Show Profile  Reply
Thank you, Nigel.

Regards, Matjaz

MU
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: