Git Product home page Git Product logo

qrcodecreateandscan's Introduction

使用前,请先部署相应的环境

具体情况,请看“setEnvironment.txt”

-------------qr_scan.py-------------

程序:二维码扫描


功能:扫描单张二维码

操作:在命令行输入 “文件名”即可进行扫描
示例1:python qr_scan.py test.jpg
示例2:python qr_scan.py ./output/test.jpg


说明:1.会在当前目录下创建一个output文件夹

	/output/qr_data.ini为数据库文件,保存扫描结果

-------------qr_create.py-------------

程序:二维码生成

功能:生成单张二维码(支持中英文,数字,符号)

操作:在命令行输入 “字符串” “图片名”即可创建二维码
示例:python qr_create.py "this is test001" "test.jpg"

说明:1.生成的二维码图片默认放在当前目录下的output文件夹下

-------------muti_thread_scan.py-------------

程序:二维码文件夹扫描


功能:多线程扫描二维码文件夹

操作:在命令行输入 “文件夹名” “文件夹名”... 即可进行多线程扫描
示例1:python muti_thread_scan.py “test_all"
示例2:python muti_thread_scan.py “test_all" "test_half"


说明:1.会在当前目录下创建一个output文件夹

	/output/qr_data.ini为数据库文件,保存扫描结果
	
	/output/error_info.txt为非二维码图片的错误信息
	
	2.当只传入一个文件夹名时,程序进行单线程扫描

补充说明

  • 程序运行结束后,不会关闭而是暂停窗口
  • 若有需要关闭窗口的,注释掉程序最后一行的os.system("pause")即可

--------------@weekdawn---------------

qrcodecreateandscan's People

Contributors

weekdawn avatar

Watchers

James Cloos 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.