GithubHelp home page GithubHelp logo

qrcode-generator's Introduction

QR-code生成器

基本信息

系统环境:Windows

语言标准:c++17

主程序:main.cpp

编译指令:g++ main.cpp -o main

使用方法:将文本输入input.txt(暂不支持中文),然后双击打开main.exe,生成的二维码会被输出到code.png,若内容为以http://https://开头的有效网址,常用的二维码扫描器扫描后会自动跳转

默认使用最高纠错等级H,可以通过修改config.ini更改纠错等级:

纠错等级 容错率 代码
7% L
15% M
25% Q
极高 30% H

纠错等级越高,容错率越高,同时信息容量越低

技术细节

RS-code采用高斯消元法计算,版本信息的BCH-code直接使用官方给出的表

二维码以png图像的形式输出,png图像生成是我以前做过的一个简单程序,可以通过RGB矩阵生成png图像

mask选择算法:以四联通相邻的相同颜色块对计数,作为估价函数,选择一个估价最小的mask,估价相同的情况下优先选择编号更大的mask

qrcode-generator's People

Contributors

ebolaemperor avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.