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.
I don’t have iOS but it seems to me that to get it depends on a camera with high resolution.
– Tony
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
@Bacco http://meta.stackexchange.com/a/216192/167534, http://meta.stackexchange.com/a/215220/167534
– bfavaretto
@bfavaretto Great links, we need volunteer translators :)
– Bacco
@Bacco I can translate, just send me a link to post :D
– RodrigoBorth
@Rodrigoborth no [meta].
– bfavaretto
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
– Marcelo Cecin