First, for "multi-terminal adaptation" "App internationalization"Assume that the URL for the previous page file is: http://www.XXX.com/app-install/terminal-language.htmlThen you can generate a two-dimensional code through the URL , scan the QR code, different terminal, language version of the specific, by the terminal-language.html automatically identify and jump.Second, for "multi-channel adaptation"three
, Self.imageLine.frame.size.width, Self.imageLine.frame.size.height);if (Linevalue ==minvalue) {down = YES;up = NO;}}}/** This is the proxy method that must be implemented, and from this method you can get the scanned url*/#pragma mark-avcapturemetadataoutputobjectsdelegate-(void) Captureoutput: (Avcaptureoutput *) captureoutput didoutputmetadataobjects: (Nsarray *) metadataobjects Fromconnection: (avcaptureconnection *) connection{NSString * STRINGVALUE;if ([metadataobjects count] > 0) {[Self.s
Use ZBar in iOS to scan the QR code to customize the scan interface, and use ioszbar to scan the interfaceZXing has been used in Android to identify QR codes. ZXing also has the corresponding iOS version. After understanding it, Z
Use ZBar in iOS to scan the QR code and customize the scan interfaceZXing has been used in Android to identify QR codes. ZXing also has the corresponding iOS version. After understanding it, ZBar is also a common QR code recogniti
; [_previewview.layer Addsublayer:cornerspathlayer]; }]; });}
Create a nsmutableset to traverse the detected QR code.
Handles an object of type Avmetadatamachinereadablecodeobject.
Converts the bounds and corner coordinates of an image. Converts the relative coordinates to the coordinates of the container view.
Process the QR code data and add it to the dictionary.
Removes
IOS AV Foundation QR code scan read QR code content using synthetic speech
In the previous section, we provided a visual display of the QR code recognized by the program. In this section, we read the content of the scanned QR code from the synthesized speech.
Modify ViewCont
Automatically generate QR code (automatically download software by mobile phone scan) and automatically generate QR code by mobile phone
Js Reference Library download: jquery-1.8.3.min.js jquery. qrcode. js
Note: To Call methods in the js library, you only need to provide the file path to generate a QR code.
Function
The main reason for writing this article is not to show how to use avfoundation for QR code scanning, but also to limit the scope of scanning QR code. (Because the default is full screen scanning)The project encountered the function of scanning QR code, here I gave up the use of the three-party library, and the introduction of Apple native
After using Avfoundation to complete the scan code, there are 2 problems:
1, how to limit the scan range?
2. How is the barcode scanned?
A friend's article helped me, specially transferred, can help the needy friend.
Original: http://www.2cto.com/kf/201411/356046.html
The main reason for writing this article is not to show how to use avfoundation for
Scan QR code/generate QR code in iOS
Recently, I have been asking you if you have any demos for QR codes. To meet your needs, I have studied them and hope they can help you!
Indicates the Root View:
self.window.rootViewController = [[UINavigationController alloc]initWithRootViewController:[SecondViewController new]];
(frame.left-6, Frame.top + i-6, Frame.right + 6,frame.top + 6 + i);Linedrawable.setbounds (Mrect);Linedrawable.draw (canvas);RefreshInvalidate ();} else {i = 0;}[/mw_shl_code]Two line styles are used here, one is a gradient line, and the other is a similar picture scan line.detailed code please see the attachment source.Run as follows:In addition, after the successful scan of the mobile phone shake and bee
Scan recognition QR codeIdea: 1. Operate the camera and get pictures.HTML5WebRTC's Navigator.getusermedia method to get camera resources in real time. 2. Use the canvas to analyze the image recognition image using the relevant algorithm toanalyze the QR code with Jquery.qrcode. (Technical point: Getimagedata)Limitations: Mobile platform supports Getusermedia/stre
IOS native QR code scan (restricted scan Areas)
The main reason for writing this article is not to show how to use AVFoundation for QR code scanning, but to limit the scanning range of QR codes. (Because full screen scan is used b
The scanned control is a view, and the user simply needs to stick it in their own controller. Other UI users can add them at their own controller. The code is as follows- (void) viewdidload {[Super viewdidload]; //Scan active area (i.e. transparent area within the box)CGRect Interestrect = CGRectMake ( -, (Self.view.frame.size.height-(Self.view.frame.size.width- +))/2.0f, Self.view.frame.size.width- +, Self.view.frame.size.width- +); //
Use the Avfoundation system library to scan the QR code and limit the scope of the QR code. (Because the default is full screen scanning)-(void) Begincode{1. Camera DeviceAvcapturedevice *device = [Avcapturedevice defaultdevicewithmediatype:avmediatypevideo];/*Media typesAvmediatypevideoAvmediatypeaudioAvmediatypetextAvmediatypeclosedcaptionAvmediatypesubtitleAvm
[JQuery] use the jquery-qrcode plug-in to convert the URL into a QR code. You can scan the QR code on your mobile phone to access jqueryqrcode.
First, find jquery-qrcode in github and Select Download ZIP to Download (click the link to open)
Download a compressed package jquery-qrcode-master.zip, decompress the package, extract the src folder, and put it in the s
Asp: Mobile Phone scan QR code jump to mobile edition, asp scan jumpIf you want to jump to the corresponding mobile phone version by using the QR code generated by the pc website, add the following content to the // red indicates the URL of the redirected website
/dingxiaowei2013 reprint please specify the Source: http://blog.csdn.net/dingxiaowei2013/article/details/24677795:the effect after the phone scan:Description: Here is the unity interface called Android Java method to jump Android development activity view, and then in Android Java method calls unity back to the Unity interface.Source CodeUnity:Using unityengine;u
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.