0% found this document useful (0 votes)
12 views15 pages

Real-Time QR Code Scanner With Link Automation

This document presents a project on a real-time QR code scanner application developed using Python libraries OpenCV and pyzbar. The application captures QR codes via a webcam, decodes them, and performs actions such as opening URLs and saving data to a text file. The literature review highlights various existing QR code applications across different fields, emphasizing the technology's versatility and potential for further integration with other systems.

Uploaded by

watashinojesse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views15 pages

Real-Time QR Code Scanner With Link Automation

This document presents a project on a real-time QR code scanner application developed using Python libraries OpenCV and pyzbar. The application captures QR codes via a webcam, decodes them, and performs actions such as opening URLs and saving data to a text file. The literature review highlights various existing QR code applications across different fields, emphasizing the technology's versatility and potential for further integration with other systems.

Uploaded by

watashinojesse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

LIBYAN INTERNATIONAL UNIVERSITY

FACULTY OF ENGINEERING AND TECHNOLOGY

Department of Artificial Intelligence

Real-Time QR Code Scanner with Link Automation

By

Shora Wael El Kwafei 4488

Supervised by

Abdurrahman Elzwai

Spring
ii
Abstract

This project represent a real-Time QR-code scanner application model using the

libraries OpenCv and pyzbar in python language. The model using web cam as

an input source, Once the model captures a QR-code it will detect it and encode

the QR code and display it immediately , then save it to file text . If the QR-code

contains a valid URL, The application automatically opens an embedded URL

page or opens it in the default web browser using Win10toast as a desktop

notification.

iii
CHAPTER 1
INTRODUCTION

iv
1.1 Introduction

In the field of the image processing, computer vision and automation, it has

been evolving very rapidly that has led to the widespread of the using of the

QR-code technologies across different fields. Their presence is now common

in everyday applications such as digital payments, identity verification,

access control, inventory systems, event check-ins, and advertising.

Qr-code stands for “Quick Response” as the creator or the inventor intended

the code to allow its contents to be decoded at high speed, While barcodes

typically represent data in one dimension (1D,) it is represents two-

dimensional barcode instead, which is categorized in matrix barcode that can

store data information. This kind of barcode was initially used for tracking

inventory in vehicle parts manufacturing and is now used in a variety of

industries

1
1.2 Problem statement
QR-code scanners are widely used in the fields of the access control, digital

transaction and product identification. Even though most real-time scanning

solutions are either built into expensive commercial software or deepened on

specialized hardware. These systems often include advanced features such as

integration with inventory databases, automation hardware, and custom

interfaces, making them unsuitable for educational, small-scale, or entry-level

use.

1.3 Aims and objectives

The aim of this project is to implement a basic real-Time program for

scanning a QR-code, encode it by using the web cam, perform useful actions

such as automatically opening embedded URLs, and display desktop

notifications.

2
The objectives:

 Develop a real-time video processing system using a standard

webcam and Python’s OpenCV library.

 Detect and decode barcodes and QR codes from live video frames

using the pyzbar library.

 Display the decoded information directly on the video feed for

user visibility.

 Save scanned data into a local .txt file for record-keeping or further

use.

 Automatically launch web links if the scanned data contains a valid

URL.

 Trigger desktop notifications to inform the user that a link has been

opened.

3
CHAPTER 2
LITERATURE REVIEW

4
2.1 Introduction

As mobile technology and computer vision have evolved, real-time scanning

systems using cameras and open source software have become increasingly

accessible. This literature review highlights the key technologies and existing

works that influence the development of this project.

2.2 summary of key studies

Study 1: Smart Attendance System Using QR Code

This study explored the development of a smart attendance system using QR

codes in academic institutions, where each student was assigned a unique QR

code containing their ID and personal data. The system utilized Python as the

primary programming language, with OpenCV to access and process live

webcam input and pyzbar to decode QR codes from video frames. Student

5
information extracted from the QR codes was then stored in a SQLite or MySQL

database to automatically mark attendance, eliminating the need for manual roll

calls. In some cases, qrcode libraries were used to generate the student QR

codes, and optional user interfaces were built using Tkinter for desktop or Flask

for web dashboards.

Study 2: Integration of QR Code with Python for Embedded Systems

The researchers implemented a lightweight Python-based application to enable

QR code detection directly on the Raspberry Pi without relying on external

computing power. The project used the OpenCV library to capture live video from

a Pi-compatible camera and the pyzbar library to decode QR code content in real

time. Based on the data encoded in the QR codes, the system was programmed

to perform various tasks such as controlling smart devices (lights, alarms, doors)

or updating inventory records. Additionally, GPIO libraries specific to Raspberry Pi

were used to trigger physical hardware actions, demonstrating the system’s

ability to operate autonomously at the edge. Data storage was managed either

locally using SQLite or remotely with cloud APIs, depending on the use case. This

study highlighted the flexibility and low-cost implementation of QR-based

automation systems, showing how combining Python libraries with embedded

6
platforms like Raspberry Pi can extend the reach of QR scanners beyond desktop

environments making the technology suitable for Internet of Things, smart

homes, and warehouse applications.

Study 3: QR Code-Based E-Payment System

This study explored the use of QR codes for secure and contactless mobile

payments. The system allowed users to scan merchant QR codes using

their smartphones, which contained transaction details like payment

amount and merchant ID. The libraries were implemented using Python

Flask, with OpenCV and pyzbar handling QR decoding, and Firebase used

for secure data storage and authentication. The study emphasized

security by encrypting QR content and limiting code validity. This QR

codes can serve not only for redirection or data storage, but also for

secure real-time financial transactions, highlighting the importance of QR

scanning in digital transformation across industries. It provides insight into

7
how your scanner could be extended with authentication or secure action

triggers.

Study 4: Contactless Check-In System Using QR Code and Face Recognition

This hybrid system combined QR code scanning with face recognition for

secure and contactless entry in workplaces and events. First, a user

scanned their QR code using a webcam, and then a face recognition

model based on OpenCV’s LBPHFaceRecognizer verified their identity. The

system used pyzbar for decoding QR, dib for facial landmarks, and a

MySQL database for logging entries. This two-factor approach increased

security and reduced physical contact, especially during the COVID-19

pandemic. This study shows how QR scanning can be paired with other

biometric techniques to enhance security systems.

Study 5: QR Code-Based Patient Management System in Healthcare

This study developed a QR code based patient management system to

streamline patient identification and record access in hospitals and clinics.

Each patient was assigned a unique QR code linked to his or her medical

records stored in a secure database. During hospital visits, staff scanned

8
the patient’s QR code using a Python-based application leveraging

OpenCV for video capture and pyzbar for QR decoding. The decoded

information enabled instant retrieval of patient history, prescriptions, and

treatment plans, reducing waiting times and manual paperwork. The

system integrated with SQLite for local data storage and featured a user-

friendly interface built with Tkinter for ease of use by healthcare

providers.

Study purpose Technique used Key feature

Smart Automate Python, Real-time QR


Attendance student OpenCV, scanning,
System Using attendance in Pyzbar, database
QR Code classrooms SQLite/MySQL logging, GUI

9
, qrcode, dashboard
Tkinter/Flask
Integration of QR Python, Real-time QR
QR Code with automation OpenCV, detection
Python for with Pyzbar, triggering
Embedded Raspberry Pi Raspberry Pi, physical
Systems in IoT and GPIO, actions such
hardware SQLite/Cloud as lights and
control APIs alarms
QR Code- Enable Python Flask, Secure
Based E- contactless OpenCV, payments, QR
Payment financial Pyzbar, decoding,
System transactions Firebase, data
encryption encryption,
cloud storage
ContactlessSecure access Python, Two-factor
Check-In to workplaces OpenCV, authentication
System Using
and events Pyzbar, dlib (QR + face),
QR Code and (face COVID-
Face landmarks), friendly,
Recognition LBPH secure
FaceRecogniz database
er, MySQL logging
QR Code- Identify Python, QR-based
Based patients and OpenCV, patient
Patient retrieve Pyzbar, lookup,
Management records SQLite, instant record
System in quickly Tkinter access,
Healthcare reduced
hospital
admin
workload

10
2.3 conclusion

The reviewed studies demonstrated the effectiveness in the field of the QR

scanning technology across different domains and fields including

healthcare, education, retail and security. They just utilized widely available

open source libraries such as OpenCV and pyzbar as mentioned in each,

So these systems provide real-time, automated data capture and processing

that significantly improve operational efficiency and accuracy. Moreover,

several studies highlight the potential for extending basic scanning

applications through integration with other technologies such as biometric

authentication and embedded systems, opening avenues for future

innovation

11

You might also like