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
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  


2 Posts

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

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

1618.3 KB



7028 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
      if Exclude_Dubious_Results and
         ( TIEVisionBarCodeSymbol( m_symbols.getObj(i) ).getBoundingBox().Width <= 1 ) and
         ( TIEVisionBarCodeSymbol( m_symbols.getObj(i) ).getBoundingBox().Height <= 1 ) then

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

Xequte Software
Go to Top of Page


2 Posts

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

Regards, Matjaz

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