扫描图片中的二维码获取二维码中的信息

###记录一下识别二维码中的信息

CIDetectordetector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}];          //2.扫描获取的特征组     UIImage im = [UIImage imageNamed:@””];     NSArrayfeatures = [detector featuresInImage:[CIImage imageWithCGImage:im.CGImage]];          if(features.count>0) {                  CIQRCodeFeaturefeature = [features objectAtIndex:0];                  NSString*scannedResult = feature.messageString;     }

    原文作者:weixin_33726318
    原文地址: https://blog.csdn.net/weixin_33726318/article/details/91400017
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞