Read bank note barcode

Asked

Viewed 2,460 times

5

How can I read ITF (size 44) coded barcode in the Intercalated 2 of 5 pattern. Using some library like zxing, zbar, etc.?

I have used zxing and zbar libraries, but does not recognize the barcode of the boleto.

Try the examples already:

https://github.com/TheLevelUp/ZXingObjC http://zbar.sourceforge.net/iphone/sdkdoc/tutorial.html

From all the examples I find I can read all kinds of barcodes (QR Code, Code 39, 93, 128, ITF, etc.) up to small size Itfs. Except for the bank bill.

Does anyone have any idea what I can do?

  • I don’t have iOS but it seems to me that to get it depends on a camera with high resolution.

  • 1

    FYI: My vote was too broad and not out of scope. And besides, I had a "not clear" vote. I’m thinking that at some point it will be necessary a post on the meta explaining what is each thing.

  • @Bacco http://meta.stackexchange.com/a/216192/167534, http://meta.stackexchange.com/a/215220/167534

  • @bfavaretto Great links, we need volunteer translators :)

  • @Bacco I can translate, just send me a link to post :D

  • @Rodrigoborth no [meta].

  • Barcode only reads the code, and does not calculate the code checker digit follows some links to studies http://www.jrimum.org/bopepo/wiki/Componente/Documentacao/Negocio http://carlosfprocha.com/blogs/paleo/archive/2013/06/21/linha-digit-225-vel-de-boletos-banc-225-rios.aspx

Show 2 more comments

1 answer

5

It is possible to read bar code of Brazilian boletos with the Zbar library. What you have to do is set the video quality to high. Follow the Zbarreaderviewcontroller configuration code snippet.

// ADD: present a barcode reader that scans from the camera feed
ZBarReaderViewController *reader = [[ZBarReaderViewController alloc] init];
reader.readerDelegate = self;
reader.supportedOrientationsMask = ZBarOrientationMaskAll;
reader.videoQuality = UIImagePickerControllerQualityTypeHigh;


ZBarImageScanner *scanner = reader.scanner;
// TODO: (optional) additional reader configuration here
[scanner setSymbology: 0
               config: ZBAR_CFG_ENABLE
                   to: 0];
[scanner setSymbology: ZBAR_I25
               config: ZBAR_CFG_ENABLE
                   to: 1];

Since iOS version 7, the Avfoundation framework offers a native method for reading barcodes. However, the interleaved pattern support 2 of 5 (AVMetadataObjectTypeInterleaved2of5Code) was recently introduced in iOS 8.

I modified the available example in this tutorial and really works well to read the boletos bar codes both title and agreement.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.