Skip to content

This Python script provides a simple graphical interface to generate and read QR codes. Users can input a reference ID to create a QR code or upload an image to decode and view the data from an existing QR code. The script uses `tkinter` for the GUI, `qrcode` for QR code generation, and `pyzbar` for decoding.

Notifications You must be signed in to change notification settings

elrayan-hm/QR-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This project is a Python-based QR code generator that encodes custom data into QR codes and provides a data reader for scanning and extracting information from QR codes. It demonstrates basic data encoding/decoding and image generation using the qrcode library in Python. Perfect for learning QR code generation and data handling.

QR Code Generator and Reader

This Python script allows users to:

  1. Generate QR Codes: Input a reference ID to generate a QR code that links to a specific URL or a random message.
  2. Read QR Codes: Upload an image containing a QR code to decode and view its data.

The script provides a simple graphical user interface (GUI) built with tkinter for easy interaction.

Features

  • Generate a QR code by entering a reference ID.
  • Upload an image to extract and view the data from a QR code.
  • Save the generated QR code as a PNG image.
  • Error handling for missing input or invalid QR codes in uploaded images.

Prerequisites

To run this script, you'll need to install the following Python libraries:

  • qrcode: To generate QR codes.
  • pyzbar: To decode QR codes from images.
  • Pillow: To handle image operations in Python.
  • tkinter: For the graphical user interface (usually included with Python).

To install the required libraries, use the following command:

pip install ... 😴

About

This Python script provides a simple graphical interface to generate and read QR codes. Users can input a reference ID to create a QR code or upload an image to decode and view the data from an existing QR code. The script uses `tkinter` for the GUI, `qrcode` for QR code generation, and `pyzbar` for decoding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages