completed)
6. device compatibility (for low-resolution devices)
This article also mentions:
7. Custom Interface
8. Optimization and debugging methods
1. Establish a project
ZXing Source Code does not provide a complete instance project for us to use. To build a project, we need three folders under the source code:
Core/
Android-core/
send an instruction to the network, select the services you need based on your instructions. The USSD command has many functions, allowing the mobile phone to restore factory settings and display the mobile phone system software version information.
IMEI (International Mobile Equipment Identity) is the abbreviation of International Mobile device Identity code. It is an electronic serial number consisting of 15 digits ", it corresponds to each mobile
the scene value will be pushed to the developer.
The process of obtaining a QR code with parameters involves two steps. First, create a two-dimensional code ticket, and then exchange the two-dimensional code with the specified URL ticket.Create a
Technology selectionIn order to solve the problem that the QR code cannot be scanned, the appropriate technical means must be chosen. Since our app refers to someone else's developed zbar-based image recognition plug-in, without the ability to modify the image recognition plug-in, I decided to solve this problem on the server side, considering the general type of the algorithm, in the service-side verificat
This article describes how to use the parameter QR code in php Development. if you are interested, refer to the development of PC-side web page functions, from the perspective of a newbie, the document of the public account is still hard to understand. most of the posts posted on the Internet are also basically copies of the documents provided by the public platform, there are still many pitfalls in the pro
Project project will be able to create a new three lib, Utils, test three folders, lib storage jar, Utils let us write the tool class, test to let us write the testing classWe start with the two-dimensional code of the logo never begin thinking:1, set some QR code parameters, such as Character set, margin, fault toler
= [infoObjectforkey:Uiimagepickercontrolleroriginalimage];
Results. resultimage. Image = image;
ID
[Info objectforkey:Zbarreadercontrollerresults];
For (zbarsymbol * symIn Syms ){
Results. resulttext. Text = sym. Data;
Break;
}
}
2. Generate a QR code)Qrencoder is easier to use in the library that generates the QR code
overwritten.With the fault tolerance of the QR code, we can place the avatar in any area of the generated QR code image.The fourth parameter, $size, controls the size of the resulting picture, which defaults to 4.The fifth parameter, $margin, controls the size of the white space to generate the
statistics, and other scenarios.
When a user scans a QR code with a scene value, the following two events may be pushed:
If the user has not followed the public account, the user can follow the public account, after which the event with the scene value will be pushed to the developer.
If the user has followed the public account, the user will automatically enter the session after scanning, and the event wi
open source Java class Library for parsing 1d/2d barcodes in a variety of formats. The goal is to decode the QR code, Data Matrix, and UPC 1D barcodes. At the same time, it also provides a class library such as cpp,actionscript,android,iphone,rim,j2me,j2se,jruby,c#. The role of the Zxing class library is mainly decoding, is the current open source class library
Thinkphp does not have a QR code-related library, so we can integrate phpqrcode to achieve the function of generating QR code.
Download Phpqrcode
Integration into the thinkphp framework
Under "Thinkphp\library\vendor\", create a new directory Phpqrcode to extract the content
= [Foundbarcodes mutablecopy]; [Newbarcodes Minusset:originalbarcodes];This code uses the subtraction of the collection to remove the already cached QR code, leaving only the newly scanned QR code.Finally, we use the collection operation again to remove the QR
Since ios and Android quickly occupied the market, the QR code has been quickly filled up. Similarly, while we are using php for php development, we must first think of the issue of generating the QR code, so where is a good start?
Since ios and
the destruction of a part of the possibility of parsing the complete information, and to the two-dimensional code in the middle of the logo can still read the complete information is its high fault tolerance.Online has found some PHP generation with Logo QR code method, but not careful enough, the generation of two-dimensional
Following the previous introduction of a Japanese Open-Source Software (this software can only implement QRCode) Original article: Java implements code and decoding of the QR code QRCode. Now we find another excellent open-source tool-ZXing, it is more flexible and convenient, and supports multiple encoding formats.
Full text directory:
Basic Introduction
Demons
of zxing is: http://code.google.com/p/zxing/Zxing is still very powerful, originally written in Java and supported by Android, iOS, Symbian and other mobile phone operating systems.But I do not know why, the official website has not even an example, the document is also a dictionary of all classes listed, not for the reader's consideration.Below I would like to use zxing to complete the example shown in this tutorial for beginners reference:1. We
front end.
Introduction:
QRCode. js is a js library that supports HTML 5 canvas and table tagging in the DOM across browsers. We use QRCode. js.
Browser:
IE6 ~ 10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.
Jquery-qrcode:
Jquery-qrcode features: simple operation, small size, only 14 k after compression, but does not support Chinese encoding.
Effect:
Qrcodejs:
Qrcodejs features:
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.