QR CODE GENERATION
--------------------------------------------------------
A REAL TIME RESEARCH PROJECT REPORT
Submitted to
Jawaharlal Nehru Technological University Hyderabad
In partial fulfillment of the requirements
for the award of the degree of
BACHELOR OF TECHNOLOGY IN
COMPUTER SCIENCE AND ENGINEERING
Submitted by
[Link] KUMAR (22E11A0524)
[Link] REDDY (22E11A0525)
[Link] KUMAR (22E11A0527)
KHUSHVEER CHOUDHARY (22E11A0528)
[Link] (22E11A0531)
Under the Supervision of
Dr. Manoj Kumar, Ph.D.
Professor
Department of Computer Science and Engineering
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam-501 510, Hyderabad, Telangana.
JULY 2024
i
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
Certificate
This is to certify that the Real Time Research Project work entitled “QR
Code generation using python” is the bona fide work done
By
[Link] KUMAR (22E11A0524)
[Link] REDDY (22E11A0525)
[Link] KUMAR (22E11A0527)
KHUSHVEER CHOUDHARY (22E11A0528)
[Link] (22E11A0531)
in the Department of Computer Science and Engineering, BHARAT
INSTITUTE OF ENGINEERING AND TECHNOLOGY, Ibrahimpatnam
is submitted to Jawaharlal Nehru Technological University, Hyderabad
in partial fulfillment of the requirements for the award of [Link] degree
in Computer Science and Engineering during the A.Y.2023- 2024.
Guide: Head of theDepartment:
[Link] Reddy Dr. Manoj Kumar
Professor Professor
Dept. of IT/DS/CS, Dept of CSE,
Bharat Institute of Engineering and Technology, Bharat Institute of Engineering and Technology,
Ibrahimpatnam – 501510, Hyderabad. Ibrahimpatnam – 501 510,Hyderabad.
Viva-Voce held on…………………………………………
ii
Internal Examiner External Examiner
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
Vision of the Institution
To achieve the autonomous & university status and spread universal education by
inculcating discipline, character and knowledge into the young minds and mould them
into enlightened citizens.
Mission of the Institution
Our mission is to impart education,in a conduciveambience,as comprehensive as
possible, with the support of all the modern technologies andmake the studentsacquire
the ability and passion to workwisely,creatively and effectively for the betterment of our
society.
Vision of CSE Department
Serving the high quality educational needs of local and rural students within the core
areas of Computer Science and Engineering and Information Technology through a
rigorous curriculum of theory, research and collaboration with other disciplines that is
distinguished by its impact on academia, industry and society.
Mission of CSE Department
The Mission of the department of Computer Science and Engineering is
iii
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
PROGRAM EDUCATIONAL OBJECTIVES (PEOs)
The Computer Science and Engineering program provides students with an in depth
education in the conceptual foundations of computer science and in complex hardware
and software systems. It allows them to explore the connections between computer
science and a variety of other disciplines in engineering and outside. Combined with a
strong education in mathematics, science, and the liberal arts it prepares students to be
leaders in computer science practice, applications to other disciplines and research.
Program Educational Objective 1: (PEO1)
The graduates of Computer Science and Engineering will have successful career
in technology or managerial functions.
Program Educational Objective 2: (PEO2)
The graduates of the program will have solid technical and professional foundation
to continue higher studies.
Program Educational Objective 3: (PEO3)
The graduates of the program will have skills to develop products,offer services
and create new knowledge.
Program Educational Objective 4: (PEO4)
The graduates of the program will have fundamental awareness of Industry
processes, tools and technologies.
iv
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
PROGRAM OUTCOMES (POs)
PO1: Engineering knowledge: Apply the knowledge of mathematics, science,
engineering fundamentals, and an engineering specialization to the solution
of complex engineering problems.
PO2: Problem analysis: Identify, formulate, review research literature, and
analyze complex engineering problems reaching substantiated conclusions
using first principles of mathematics, natural sciences, and engineering
sciences.
PO3: Design/development of solutions: Design solutions for complex engineering
problems and design system components or processes that meet the
specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
PO4: Conduct investigations of complex problems
: Use researchbased knowledge and research m
v
PO5: Modern tool usage: Create, select, and apply appropriate techniques,
resources, and modern engineering and IT tools including prediction and
modeling to complex engineering activities with an understanding of the
limitations.
PO6: The engineer and society: Apply reasoning informed by the contextual
knowledge to assess societal, health, safety, legal and cultural issues and
the consequent responsibilities relevant to the professional engineering
practice.
PO7: Environment and sustainability: Understand the impact of the professional
engineering solutions in societal and environmental contexts, and
demonstrate the knowledge of, and need for sustainable development.
PO8: Ethics: Apply ethical principles and commit to professional ethics and
responsibilities and norms of the engineering practice.
PO9: Individual and team work: Function effectively as an individual, and as a
member or leader in diverse teams, and in multidisciplinary settings.
PO10 Communication: Communicate effectively on complex engineering activities
: with the engineering community and with society at large, such as, being able
to comprehend and write effective reports and design documentation,make
effective presentations,and give and receive clear instructions.
PO11 Project management and finance: Demonstrate knowledge and
: understanding of the engineering and management principles and apply
these to one’s own work,as a member and leader in a team, to manage
projects and in multidisciplinary environments.
PO12 Life-long learning
: : Recognize the need for, and have the preparation and ability to engage in independent and
vi
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
PROGRAM SPECIFIC OUTCOMES (PSOs)
PSO1 Foundation of mathematical concepts: To use mathematical
: methodologies to crack problem using suitable mathematical analysis,
data structure and suitable algorithm.
PSO2 Foundation of Computer System: The ability to interpret the
: fundamental concepts and methodology of computer systems. Students
can understand the functionality of hardware and software aspects of
computer systems.
PSO3 Foundations of Software development: The ability to grasp the
: software development lifecycle and methodologies of software systems.
Possess competent skills and knowledge of software design
[Link] and practical proficiency with a broad area of
programming concepts and provide new ideas and innovations towards
research.
vii
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Accredited by NAAC, Accredited by NBA (UG Programmes: CSE & ECE)
Approved by AICTE, Affiliated to JNTUH Hyderabad
Ibrahimpatnam -501 510, Hyderabad, Telangana
QUALITY OF THE PROJECT
I. Consideration to Factors
Factors Type of Project
(Environment, Safety, (Application, Product, Standards
Ethics, Cost) Research, Review, etc.)
The information to be A QR code generator project
encoded in the QR code, involves creating a system that
such as text, URL, email,
generates QR codes based on user
phone number,or SMS.
The level of security and input. Users can enter text, URLs,
encryption used to protect the or other data, which the system
encoded data. then encodes into a QR code
image.
II. POs and PSOs addressed through the project with justification
viii
POs and
S. PSOs Justificati
No. Addresse on
d
1 PO1 Engineering knowledge: Machine Learning algorithms were
. used for the comparison of results.
2 PO2 Problem analysis:
The main drawbacks were observed, and led to implementation
.
Design/Development of solutions: We had designed the
3 PO3 solution that gives the accurate values.
.
Modern Tool Usage: We had implemented all the algorithms
using modern engineering and IT tools (i.e., Python language
4 PO5
and Anaconda navigator).
.
Foundation of mathematical concepts: Calculating the
5 PSO1 accuracy and precision are done based on these three
. algorithms.
Foundation of Software Development: This project has the
proper usage of Software Development Life Cycle.
6 PSO3
.
ix
[Link]. Major Project Work Report 2023-2024
x
ABSTRACT
QR code generation can be easily accomplished using Python programming language. Python
offers various libraries such as QRcode, qrcode, and python-qrcode that provide functionality to
generate QR codes. These libraries enable users to create QR codes with customized content,
size, and error correction levels. With just a few lines of code, you can generate QR codes for
various purposes, including data storage, tracking, and sharing. Additionally, Python's extensive
libraries and tools enable advanced customization and integration of QR code generation with
other applications and systems.
Some of the key features of QR code generation using Python include:
- Customizable content (text, URLs, emails, etc.)
- Adjustable size and error correction levels
- Support for various QR code versions and modes
- Generation of vector graphics (SVG, EPS, etc.) and raster images (PNG, JPEG, etc.)
- Integration with other Python libraries and frameworks for advanced applications.
Overall, Python provides a convenient and efficient way to generate QR codes, making it a
popular choice for various applications and use cases.
x
DECLARATION
We hereby declare that this Real Time Research Project Work titled “QR
Code generation using python” is a genuine project work carried out by us,
in [Link] (Computer Science and Engineering) degree course of Jawaharlal
Nehru Technology University Hyderabad, Hyderabad and has not been
submitted to any other course or university for the award of my degree by
us.
Candidate Name(s) Roll Number Signature
1. [Link] KUMAR 22E11A0524
2. [Link] REDDY 22E11A0525
3. [Link] KUMAR 22E11A0527
4. KHUSHVEER 22E11A0528
5. [Link] 22E11A0531
Date:
xi
ACKNOWLEDGEMENT
The satisfaction that accompanies the successful completion of the task would be put
incomplete without the mention of the people who made it possible, whose constant guidance
and encouragement crown all the efforts with success.
We avail this opportunity to express our deep sense of gratitude and hearty thanks to Sri
CH. Venugopal Reddy, Chairman & Secretary of BIET, for providing congenial atmosphere and
encouragement.
We would like to thank Prof.G. Kumaraswamy Rao, Former Director & O.S. of DLRL
Ministry of Defense, Sr. Director R&D, BIET, Dr. V. Kannan, College Admin Incharge of BIET
for having provided all the facilities and support.
We would like to thank our Dr. Mahesh Lokhande, Admin Incharge of Computer Science
and Engineering for his expert guidance and encouragement at various levels of our project.
We are thankful to our Project Coordinator Dr. Manoj Kumar, Professor in IT/DS/CS
Dept. for his support and cooperation throughout the process of this project.
We are thankful to our guide [Link] Reddy, Professor in IT/DS/CS Dept. for his
sustained inspiring guidance and cooperation throughout the process of this project. His wise
counsel and suggestions were invaluable.
We express our deep sense of gratitude and thanks to all the Teaching and Non-Teaching
Staff of our college who stood with us during the project and helped us to make it a successful
venture.
We place highest regards to our Parents, our Friends and Well-wishers who helped a lot
in making the report of this project.
xii
TABLE OF CONTENTS
Chapter No. Title Page
No.
1 Introduction 1
2 Overview and tools involved 2
3 Explanation of steps 3
4 Summary of customization options 4
5 Hardware and Software requirements 5
6 Sample or source code 6-7
Execution and Output 8
7 Data Flow diagram 9
Block diagram 10
8 Limitations and Considerations 11
9 References 12
10 Conclusion 13
xiii
QR CODE
GENERATION
~USING PYTHON
0
[Link]. Major Project Work Report 2023-2024
INTRODUCTION
--------------------------------
A QR (Quick Response) code is a two-dimensional barcode that
can store a significant amount of data, such as URLs, text,
contact information, and more. QR codes are widely used in
various applications, including marketing, authentication, and
information sharing, due to their ability to be easily scanned by
smartphones and other devices.
[Link] code Library :
• Create QR codes with different sizes and error correction levels.
• Supports adding data of various types, including URLs, text, and
contact information.
2. Pillow Library :
•Supports opening, manipulating, and saving many different image
file formats.
•Provides functions for drawing and images. •Integrates seamlessly
with the qrcode library for handling QR code images integrate with
other Python projects.
1
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
OVERVIEW AND TOOLS INVOLVED IN
QR CODE GENERATION
• QR Code stands for Quick Response Code, a type of two-
dimensional barcode that can be read using QR scanners or
smartphones with cameras. They are used to store data that
can be quickly and easily accessed by scanning the code. QR
codes can contain various types of information, including URLs,
text, contact information, and more.
• Tools Required :
• To create a QR code generator in Python, you will need the
following tools:
1. Python: The programming language to write the code.
2. qrcode Library: A Python library to generate QR codes.
3. Pillow Library: A Python Imaging Library (PIL) fork used for
image processing.
2
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
EXPLANATION OF STEPS
[Link] Libraries: Import qr code and Pillow to
handle QR code generation and image processing.
[Link] Data: Specify the information to be encoded
into the QR code.
[Link] QR Code Object: Initialize the “QR Code”
object with parameters for size, error correction, and
appearance.
[Link] Data: Add the data to the QR code object
using the “add_data” method.
[Link] Image: Create the QR code image with
“make_image” method.
[Link] Image: Save the QR code image to a file for
later use.
These steps provide a clear and concise method to
generate QR codes using Python, which can be
adapted and expanded upon for various applications.
3
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
SUMMARY OF CUSTOMIZATION
OPTIONS
[Link] Colors:
•Use “fill_color” and “back_color” parameters in
“make_image” to set foreground and background
colors.
[Link] Logos:
•Open the logo image with Pillow. •Use the paste
method to add the logo to the QR code image.
[Link] Size and Error Correction Levels:
•Set “version” to control QR code size.
•Set “error_correction” to adjust error correction
capacity (options: L, M, Q, H).
These customization options allow you to create visually
appealing and functional QR codes that can be tailored to
your specific needs
Structure of QR Code
4
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
HARDWARE REQUIRMENT:
Processor: Minimum 1 GHz; Recommended 2GHz or more
Internet connection (LAN) OR a wireless adapter (Wi-Fi)
Downloaded by Khushveer Choudhary (khusveerc@[Link])
lOMoARcPSD|44066006
Hard Drive: Minimum 32 GB; Recommended 64 GB or more
Memory (RAM): Minimum 1 GB; Recommended 4 GB or
above
Video Capturing Device.
Web Browser.
SOFTWARE USED :
Operating System Windows 10 or above
Programming Language Python
PIL
Modules & libraries Numpy
QRcode
Webbrowser
5
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
EXAMPLE CODE ~
CODE 1
import qrcode
qr = [Link](version=2,
error_correction=[Link].ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("[Link]
[Link](fit=True)
img = qr.make_image(fill_colour="black", back_colour="white")
[Link]("biet [Link]") import qrcode
qr = [Link](version=2,
error_correction=[Link].ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("[Link]
[Link](fit=True)
img = qr.make_image(fill_colour="black", back_colour="white")
[Link]("biet [Link]")
System Tests:
6
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
CODE 2
import qrcode
qr = [Link](version=2,
error_correction=[Link].ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("[Link]
igsh=MWw3dGw2d2Nxem0wZA==")
[Link](fit=True)
img = qr.make_image(fill_colour="black", back_colour="white")
[Link]("biet [Link]")
System Tests:
7
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
Output1:
Output2:
8
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
DATA FLOW DIAGRAM -
Flow chart is a graphical representation using symbol to show
the step by step sequence of operation, activities or procedures
used in computer system analysis, activity analysis and in
program sequence representation. It presents the simple flow
project.
9
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
Block Diagram of QR Code generation-
10
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
LIMITATIONS AND CONSIDERATIONS
OF QR CODE GENERATORS
Limitations
[Link] Capacity: QR codes have limited data capacity
based on version and error correction level.
[Link] Issues: Poor printing quality or low contrast
can hinder scanning, especially with complex designs.
[Link] Correction: Higher error correction levels reduce
data capacity but enhance durability.
[Link] Impact: Logos or colors may affect QR
code readability; test across devices
Considerations
[Link] Context: Choose size and error correction level
based on environment and scanning device.
[Link]: Ensure QR codes work with various
scanners and applications.
[Link] Sensitivity: Secure data and consider encryption for
sensitive information.
[Link] Balance: Maintain contrast and avoid excessive
customization to retain scan reliability.
11
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
REFERENCES OF QR CODE
GENERATOR
•Qr code Documentation: Guide for using the “qr code”
library in Python.
•Pillow Documentation: Resources for the “Pillow”
library (PIL Fork) for image processing.
•Qr code on PyPI: Official page with installation
instructions for “qr code” library.
•Pillow on PyPI: Official page with installation details for
“Pillow” library.
•GitHub – qr code: Source code repository for “qr code”
library
12
CSE Department, BIET (for CSE )
[Link]. Major Project Work Report 2023-2024
CONCLUSION
1. Successfully created a user-friendly system for generating QR
codes from various data inputs.
2. Efficiently encodes data into scannable QR codes, ensuring
reliability and responsiveness.
3. Demonstrated practical application of data encoding for
personal and business use.
4. Thoroughly tested to ensure robustness and accuracy of QR
code generation.
5. Future enhancements could include more customization
options and improved backend scalability.
----****-------------------- THANK YOU --------------------****-----
13
CSE Department, BIET (for CSE )