QR Code Generation: in Partial Fulfillment of The Requirements For The Award of The Degree of
QR Code Generation: in Partial Fulfillment of The Requirements For The Award of The Degree of
QR Code Generation: in Partial Fulfillment of The Requirements For The Award of The Degree of
--------------------------------------------------------
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
K.PRANAY KUMAR (22E11A0524)
K.ANIRUDH REDDY (22E11A0525)
K.MANOJ KUMAR (22E11A0527)
KHUSHVEER CHOUDHARY (22E11A0528)
K.ANJANEYULU (22E11A0531)
Under the Supervision of
Dr. Manoj Kumar, Ph.D.
Professor
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
ii
Internal Examiner External Examiner
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
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
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.
PO8: Ethics: Apply ethical principles and commit to professional ethics and
responsibilities and norms of the engineering practice.
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
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
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
ix
B.Tech. 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.
- 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 B.Tech (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.
4. KHUSHVEER 22E11A0528
5. K.ANJANEYULU 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 Dr.Thirupal 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
1 Introduction 1
3 Explanation of steps 3
Block diagram 10
9 References 12
10 Conclusion 13
xiii
QR CODE
GENERATION
~USING PYTHON
0
B.Tech. Major Project Work Report 2023-2024
INTRODUCTION
--------------------------------
2. Pillow Library :
•Supports opening, manipulating, and saving many different image
file formats.
1
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
• 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 )
B.Tech. Major Project Work Report 2023-2024
EXPLANATION OF STEPS
3
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
SUMMARY OF CUSTOMIZATION
OPTIONS
1.Changing Colors:
2.Adding Logos:
Structure of QR Code
4
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
HARDWARE REQUIRMENT:
SOFTWARE USED :
PIL
Modules & libraries Numpy
QRcode
Webbrowser
5
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
EXAMPLE CODE ~
CODE 1
import qrcode
qr = qrcode.QRCode(version=2,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("https://biet.ac.in/")
qr.make(fit=True)
qr = qrcode.QRCode(version=2,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("https://biet.ac.in/")
qr.make(fit=True)
System Tests:
6
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
CODE 2
import qrcode
qr = qrcode.QRCode(version=2,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=20,
border=2)
qr.add_data("https://www.instagram.com/bharat_institutions?
igsh=MWw3dGw2d2Nxem0wZA==")
qr.make(fit=True)
img.save("biet page.png")
System Tests:
7
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
Output1:
Output2:
8
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
9
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
10
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
Limitations
Considerations
11
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
REFERENCES OF QR CODE
GENERATOR
12
CSE Department, BIET (for CSE )
B.Tech. Major Project Work Report 2023-2024
CONCLUSION
13
CSE Department, BIET (for CSE )