iOS ZBarReaderView如何实现强制聚焦,提高聚焦度,有相关的方法和属性吗
高洛峰
高洛峰 2017-04-17 17:22:17
0
1
681

如同ZBarViewController有相关方法:
ZBarReaderViewController *reader = [ZBarReaderViewController new];

reader.readerDelegate = self;
reader.videoQuality = UIImagePickerControllerQualityTypeHigh;
reader.supportedOrientationsMask = ZBarOrientationMaskAll;
ZBarImageScanner *scanner = reader.scanner;
[scanner setSymbology:ZBAR_I25 config:ZBAR_CFG_ENABLE to:1];

reader.showsZBarControls =NO;
[self setOverlayPickerView:reader];
[self presentViewController:reader animated:YES completion:nil];

ZBarReaderView有相关的提高聚焦的方法的吗?现在ZBarReaderView在有些机型上很难扫出小型的条形码

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Peter_Zhu

There is an attribute in ZBarReaderView which is AVCaptureSession. Change readonly to strong, import <AVFoundation/AVFoundation.h> in the file that calls ZBarReaderView, and then set it like this [_readerView.session setSessionPreset:AVCaptureSessionPresetHigh]; to scan small barcodes. That's pretty quick.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template