Python generates QR code, python

Source: Internet
Author: User

Python generates QR code, python

# Coding: utf8try: import qrcode0000t ImportError: qrcode = Noneclass MakeQr: def onUseQrcode (self, value): qr = qrcode. QRCode (version = 1, box_size = 10, border = 4) qr. add_data (value) qr. make (fit = True) x = qr. make_image () img_file = open ("1.jpg", 'wb') x. save (img_file, 'jpeg ') img_file.close () print' OK 'if _ name _ =' _ main __': value = "http://www.baidu.com" makeQr = MakeQr () makeQr. onUseQrcode (value)


How to Use python to parse the QR code?

Google has such a service using third-party APIs.
 
Software and solutions for generating QR codes

1. The label matrix printing software can generate two-dimensional bar codes. It depends on the code system you need. If you think it is not easy to use, you can use other bar code printing software.
2. A two-dimensional barcode scanner is required for scanning. A one-dimensional barcode scanner cannot be decoded.
3. It can be implemented through the database.

Shenzhen varenze Electronic Co., Ltd. is a professional bar code company.

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.