You are on page 1of 8

Name of the School: School of Computer Science and Engineering

Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

QR CODE GENERATOR
Project Id :
GROUP NAME:

 Submitted by :
1.Aniket Singh (23SCSE1011000)
2.Deepanshu Madan (23SCSE1011730) UNDER THE GUIDEANCE OF-
SECTION:- ( 10 ) Anubhav Kumar
Research Scholar-SCSE GALGOTIAS UNIVERSITY
GALGOTIAS UNIVERSITY

Programe Name: B.Tech (CSE)


Nmae Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

INTRODUCTION:-
 A QR code, or Quick Response code, is a type of two-
dimensional matrix barcode invented in 1994 by the Japanese
company Denso Wave for labeling automobile parts.
 Unlike a traditional one-dimensional barcode that carries
data in one direction (horizontally),
 A QR code carries data in two dimensions (both
horizontally and vertically). This allows it to hold much more
information than a traditional barcode
Name Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

PROBLEM FACED:-
There are several common issues that we as beginners faced when generating QR codes in
Python:
1.Installation of the qrcode library: Before using the qrcode library, it needs to be
installed. This is typically done with pip: pip install qrcode.
2.File path issues: When saving the QR code image, the specified file path needs to exist
and be writable. If the path does not exist or if there are insufficient permissions,
the img.save("qr.png") line will throw an error.
3.QR Code readability: The generated QR code needs to be clear and of sufficient size to
be readable by a scanner. If the QR code is too small, blurry, or does not have sufficient
contrast with the background, it may not scan correctly.
4.Data security: QR codes are easily scannable and can contain a lot of information,
which can lead to security concerns if sensitive data is encoded.

Faculty Name: Dr. Santosh Kumar Srivastava ame:


Name Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

DESCRIPTION AND OBJECTIVE :-

 The objective of this code is to generate a QR code for the YouTube video at the
URL ‘https://youtu.be/p9RcPgQesIo?si=LvxcwzPyzHc8OqHD’.
 The generatedQR code can be scanned using a QR code reader, which will then
open the YouTube video in a web browser or the YouTube app.
 This is a convenient way to share URLs, as it reduces the need for typing out the
entire URL. Instead, users can simply scan the QR code to access the content.
 The QR code image is saved as a PNG file named ‘qr.png’, which can be shared
or printed as needed.

Faculty Name: Dr. Santosh Kumar Srivastava ame:


Nmae Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

methodology:-

1) import qrcode: This line imports the qrcode library, which provides the functionality to
create QR codes.
2) img = qrcode.make('https://youtu.be/p9RcPgQesIo?si=LvxcwzPyzHc8OqHD'): This
line creates a QR code from the provided URL. The make function of the qrcode library
takes a string as input and returns an image object representing the QR code.
3) img.save("qr.png"): This line saves the generated QR code to a file. The save method of
the image object takes a filename as input and writes the image to that file. In this case, the
image is saved as qr.png in the current directory.
START Initialize
FLOW CHART
Import Library
(qrcode)

Create QR code

Specify Data : Input URL

Make QR code

Save image

Specify File Name : ‘some_file .png’ END


Name Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

Uses of QR Code
1.Sharing URLs: If you have a website or a specific web page you want to share
with others, you can generate a QR code for that URL. Users can then scan the
QR code with their mobile device to be taken directly to that website or web
page.
2.Event Tickets and Boarding Passes: QR codes can be used on event tickets or
boarding passes. The QR code can contain the details of the ticket or pass, and
can be scanned at the entrance for quick access.
3.Education and Learning: QR codes can be used in educational resources to
link to additional learning materials, like instructional videos or supplementary
content.
Faculty Name: Dr. Santosh Kumar Srivastava ame:
Name Of The School: School of Computing Science and Engineering
Course Code: E2UC102C Course Name: PROGRAMMING FOR PROBLEM-SOLVING

THANKS!

Faculty Name: Dr. Santosh Kumar Srivastava ame:

You might also like