Read bank draft bar code

5

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

I have already used the zxing and zbar libraries but do not recognize the ticket barcode.

Now try the examples:

link link

Of all the examples I find I can read all types of bar codes (QR Code, Code 39, 93, 128, ITF, etc.) to small size ITFs. Less the boleto bancário.

Does anyone have any idea what I can do?

    
asked by anonymous 14.09.2014 / 23:30

1 answer

5

It is possible to read Brazilian ticket bar code with the ZBar library. What you have to do is set the video quality to high. Here is 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 version 7 of iOS the AVFoundation framework offers a native method for reading bar code. However, support for Interleaved Standard 2 of 5 ( AVMetadataObjectTypeInterleaved2of5Code ) was recently introduced in iOS ( 8 .

I have modified the example in this tutorial and it really works well for reading barcodes from tickets both title and covenant.

    
04.11.2014 / 00:11