GithubHelp home page GithubHelp logo

qr_solution's Introduction

电脑端的二维码解决方案

这个项目实现了在电脑端生成二维码和通过摄像头识别二维码。

说明

  • generator.py: 使用剪贴板的数据生成二维码。
  • scanner.py: 从摄像头得到得到图片, 将解码后的数据存在系统的剪贴板。解码成功发出提示音。30s内镜头中没有出现二维码,程序自动退出。

将程序添加到菜单

在Linux下可以通过以下方式完成:

sudo gedit /usr/share/applications/barcode_scanner.desktop
[Desktop Entry]
Encoding=UTF-8
Exec=/home/your/python/path/python /home/your/path/scanner.py
Icon=/usr/your/icon.svg
Type=Application
Terminal=false
Comment=Use camera to scann barcode, and save results to clipboard.
Name=barcode-scanner
GenericName=Use camera to scann barcode, and save results to clipboard.
StartupNotify=true
Categories=Development;

qr_solution's People

Watchers

James Cloos avatar Jie Huang 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.