Implementation of two-dimensional code generation and analytic zxing by Java zxing Realization of two-dimensional code generation and parsing

Source: Internet
Author: User

Https://www.cnblogs.com/zhangzhen894095789/p/6623041.html

zxing Realization of two-dimensional code generation and parsing
Two dimensional code zxing

The generation and analysis of two-dimensional codes. There are many ways. I choose to use a big brand, Google boss Zxing.

The GitHub link is (I used 3.0.0, already NiO)

https://github.com/zxing/zxing/tree/zxing-3.0.0

Java code//where the output image and the class reading the image are in the core package Multiformatreader Multiformatwriter//generating matrix classes in the Javase package Matrixtoimagew Riter

The configuration in Pom.xml is XML code    <project xmlns= "http://maven.apache.org/POM/4.0.0"  xmlns:xsi= http:/ /www.w3.org/2001/xmlschema-instance "       xsi:schemalocation=" http:// Maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd ">        <modelVersion>4.0.0</modelVersion>          < groupid>com.shihy</groupid>       <artifactid>qrcode</ artifactid>       <version>0.0.1-SNAPSHOT</version>       <packaging>jar</packaging>           <name>qrcode</name>       <url>http://maven.apache.org</url >          <properties>            <project.build.sourceencoding>utf-8</project.build.sourceencoding>        </properties>          <dependencies>            <dependency>                <groupId>com.google.zxing</groupId>                <artifactId>core</artifactId>                <version>3.0.0</version >           </dependency>            <dependency>                <groupId>com.google.zxing</groupId>                <artifactid>javase</artifactid>                <version>3.0.0</version>            </dependency>            <dependency>                <groupid>junit&l

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.