Last active
August 29, 2015 14:11
-
-
Save koyopro/ebd4b38a7fb3ef8de799 to your computer and use it in GitHub Desktop.
iOSで画像からQRコードを読み取る ref: http://qiita.com/yoshida-k/items/78f2ef2ffa38361a73fa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(BOOL)hasQRCode:(UIImage *)image | |
{ | |
ZBarImage *zbarimg = [[ZBarImage alloc] initWithCGImage:image.CGImage]; | |
ZBarImageScanner *scanner = [[ZBarImageScanner alloc] init]; | |
BOOL hasqr = [scanner scanImage:zbarimg]; | |
return hasqr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment