AmirTahaMim / RealTime-QR-Detection

This Python script to detect and decode QR codes in real-time from a live webcam feed. It is a handy tool for instant QR code scanning applications, such as inventory management and digital ticketing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RealTime-QR-Detection

This is a Python script that uses OpenCV and pyzbar to detect and decode QR codes from a webcam feed.

Requirements

Before running the script, make sure you have the following libraries installed:

  • OpenCV (opencv-python)
  • pyzbar (pyzbar)

You can install the required libraries using pip:

pip install opencv-python pyzbar

How to Use

  1. Clone this repository or download the script RealTimeQR_Detector.py to your local machine.

  2. Make sure you have a webcam connected to your computer.

  3. Open a terminal or command prompt and navigate to the directory containing the script.

  4. Run the script using the following command:

python RealTimeQR_Detector.py

  1. The script will start the webcam feed, and it will continuously search for QR codes in the video frames.

  2. When a QR code is detected, it will draw a rectangle around it and print the decoded data in the console.

  3. To quit the program, press the 'q' key.

Acknowledgements

License

This project is licensed under the MIT License. Feel free to use and modify it according to your needs.

About

This Python script to detect and decode QR codes in real-time from a live webcam feed. It is a handy tool for instant QR code scanning applications, such as inventory management and digital ticketing.

License:MIT License


Languages

Language:Python 100.0%