Fix qrcode scan require using gpu

This commit is contained in:
yicheng 2018-10-12 21:05:25 +08:00
parent 5a7bb4fa41
commit db4751f2e6

View File

@ -30,7 +30,7 @@ class QRCodeUtil: NSObject {
}
let detector = CIDetector(ofType: CIDetectorTypeQRCode,
context: nil,
context: CIContext(options: [CIContextOption.useSoftwareRenderer : true]),
options: [CIDetectorAccuracy:CIDetectorAccuracyHigh])!
var ssUrls = [String]()