Recently I have been studying QR code recognition and used the Zxing open source code, but the GBK type is always garbled. After two days of hard work, I finally solved the problem today. Remember ,.
I was developed on the basis of the Zxing-1.6, because zxing1.6 to the vertical screen to support better.
First, we need to build the environment for compiling core. jar, which I will not talk about. If not, yo
Use zxing to generate a two-dimensional code picture with logo, automatically adjust the size of the logo picture relative to the two-dimensional code picture
* Optional whether with logo, choose whether to save two-dimensional code picture; result returns a base64 encoded picture data string
* Page display:
* Maven Jar
*
Two-dimensional code generation tool class download: Click to open the link
Original author http://www.kancloud.cn/digest/javax
Zxing: key code for customizing and modifying the QR code
Official source code: http://code.google.com/p/zxing/downloads/list;
Decompress the downloaded zxing-x.x.zip file. We only need to use the sample project in the android directory,
Import the android project to eclipse, and do not forget to import the corresponding jar to libs. At this time, the sample pro
Android: Use ZXing to generate a QR code (Logo design can be added)
ZXing is an open-source library of Google that can be used to generate and scan QR codes. This article introduces the first part.
First:
ZXing-related files official: https://github.com/zxing/zxing/releases
Last Friday, when wandering around Google code, I checked Google's open-source projects,
Click "Open Source plan" on code.google.com and then click "use Google Code ".
You can view the list of all open-source projects of Google.
After several pages, I found that a zxing has never heard of it before)
It turned out to be a QR code recognition library. Just a few months ago, I was confused about how the anti-counterfeiting code on the train ticket was m
Recently made a module about two-dimensional code parsingChoose Google's Open source project ZxingAdd Flash features in zxing as follows:In the Cameramanager class under the Com.xxx.xxx.Zxing.camera packageAdd code:Openlight is to turn on the flashOfflight is to turn off the flash public void Openlight () { if (camera! = null) { parameter = camera.getparameters (); Parameter.setflashmode (parameters.flash_mode_torch
Zxing Vertical Screen Switch AndroidZxingdemo downloaded on google is a horizontal screen stateI simply changed the activity to a vertical screen android:screenorientation= "Portrait" in Androidmanifest.xml.The screen is positive, but the shooting screen is still sideways.Checked some online information, combined with their own manual commissioningSummarize here to shareSteps:1) Change the screenorientation of android:screenorientation= "Portrait"2) R
C # WPF uses ZXing to generate the QR code ImageSource,
Introduction:
To generate a QR code image similar to the following in the WPF form program, you can use the method described in this article.
Add steps:
1. Download The zxing. Net third-party library on http://zxingnet.codeplex.com/site
2. Download and decompress the package. You can see that there are dll files for different. Net versions. reference
Referring to the online example, the Zxing sub-project into Xcode, found that the files in the sub-project file not found error, found that the header file is definitely the search directory has problems, so head file directory (sub-project root directory) added to the main project header file search path inside. Check changed several times or reported the same problem, finally found that the original is recursive problem, before joining the path when
Android open-source QR code recognition project zxing landscape screen changed to vertical screen recognition solution, androidzxing
I found a lot of methods on the Internet, but there was a problem in the end. After debugging for several hours, I finally solved the problem of portrait screen recognition perfectly.
First, you need to have the simplified code of the zxing project.
Using the simplified versio
,intParamsheight)throwswriterexception{HashtableNewHashtable(); Hints.put (Encodehinttype.character_set,"Utf-8"); //generate a two-dimensional matrix, specify the size of the encoding, do not generate a picture and then zoom, which will blur leading to recognition failureBitmatrix matrix =NewMultiformatwriter (). Encode (str, barcodeformat.upc_a, Paramswidth, paramsheight); intwidth =matrix.getwidth (); intHeight =matrix.getheight (); //The two-dimensional matrix is converted into a one-dimensio
;importcom.google.zxing.barcodeformat;import com.google.zxing.encodehinttype;importcom.google.zxing.multiformatwriter;import com.google.zxing.common.bitmatrix;importcom.swetake.util.qrcode;publicclassqrcodedemo{ publicstaticvoidmain (String[]args) {qrcodedemo.encoderqrcode (" This is the QR code generated with QRCode "," C:/users/liyy/desktop/testqrcode.png "); qrcodedemo.zxingtest (" This is the QR code generated using zxing "," C:/users/liyy/desktop
Zxing generates a QR code nested logo and outputs it to the browser, zxinglogo
After reading so many blogs and carrying so many code, I wrote my own blog for the first time. I found that even if I used some technology, it is still not easy to express and restate it. I hope I can stick to it.
Why is Zxing used? I don't know anything about Google.
It is quite easy to get started with the introduction of more
').getContext; } return this.each(function(){ //if the browser not support canvas,then table. if(!canvasSupport()){ options.render = "table"; } var element = options.render == "canvas" ? createCanvas() : createTable(); $(element).appendTo(this); });
After modification, you do not need to specify the render parameter. If canvas is not supported, table is used. the disadvantage of using c
Recent work needs to develop a QR code scanning software (based on open source project zxing), the problems encountered in the record, but also hope to bring you help.1. First because the scan to open the camera so add permission is certain, otherwise nothing can be done behind2. Set the size of the scan box:Find in the Com.zxing.camera packageprivate static final int min_frame_width = 240;private static final int min_frame_height = 240;private static
Original: Android Project Combat (44): zxing Two-dimensional code switching horizontal screen scanningDemo LinkThe default is portrait scanning, but when we configure the horizontal screen display in the manifest file: activity android:name=". Captureactivity" android:screenorientation="landscape" android:theme="@android: Style/theme.notitlebar.fullscreen" / >This time scan, you will find that the scanning effect def
Download Demo project-55 KB
Introduction
Some days ago, I was asked to find a solution to create a barcode to be printed on documents produced by a Web application. after trying to find some components that produced barcodes, I soon realized that their price was very high when dealing with an unlimited number of clients licences. I needed an alphanumeric barcode representation and the
Today we are going to learn about the usage of zxing, which only covers the Java SE section.The study of ZxingIf you use zxing in a Java SE environment, you need to add dependencies in Maven's pom.xml:Dependency> groupId>Com.google.zxinggroupId> Artifactid>JavaseArtifactid> version>3.3.0version>Dependency>First, according to the content to generate two-dimensional code Public void Encodenoreturn (S
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.