Classify QR Code with AVFoundation - objective C [duplicate]

大憨熊 提交于 2019-12-13 02:59:53

问题


I'm new with QR Code. I use AVFoundation to detect QR Code and decode it to a text. I want to ask that: How can I know the text is a link or a contact or a number,... I mean: With a QR code, can I know what type is it with using AVFoundation? Sorry for my bad english.


回答1:


In the QR code, you can read the text by using a scanner seperately and if you need to read the text in xcode then you need to use this piece of code.

- (BOOL)startReading {
    NSError *error;

    AVCaptureDevice *captureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];

    return YES;
}

since this AVFoundation is used to capture motion picture we can capture the QR code and then we can read it. For further reference you can look in to How To Scan QR Code Using AVFoundation Framework



来源:https://stackoverflow.com/questions/29270877/classify-qr-code-with-avfoundation-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!