Python Assignment 2 Batch 3
Python Assignment 2 Batch 3
ENGINEERNING
SUBMITTED BY
812024106009 –EVANJALIN ABIYAL .T P
812024106010 –EZHILMANI. R
812024106011 –GABIN JOSUVA .J
812024106012 –GOVINDHARAJ . M
ANNA UNIVERSITY
CHENNAI
DECEMBER-2024
Marks Split up
Comprehension K2
of the project
Project K3
Execution
Degree of K3
result accuracy
Presentation K3
Project Report K3
compliance
Collaboration K3
and Teamwork
Total Marks
1 ABSTRACT 4
2 INTRODUCTION 5
3 PROJECT PLANNING 6
5 IMPLEMENTATION 11
7 SAMPLE PROGRAM 15
8 SAMPLE OUTPUT 18
10 CONCLUSION 24
11 REFERENCES 25
CHAPTER 01
ABSTRACT:
The Python-based QR Code Generator is a versatile tool
designed to encode textual data, URLs, or any other information
into machine-readable QR codes. By leveraging the simplicity and
power of Python's qrcode library, the project delivers a user-
friendly solution to create QR codes for diverse applications,
such as sharing contact details, URLs, Wi-Fi credentials, or
marketing content. The tool supports customization options,
including size, border thickness, and color schemes, making it
adaptable to various aesthetic and functional requirements.
INTRODUCTION:
QR codes (Quick Response codes) have become a
ubiquitous tool for encoding and sharing information in a
compact, machine-readable format. Their versatility spans across
industries, from marketing and retail to education and logistics,
enabling easy access to digital content, product details, and
interactive experiences. With the increasing reliance on
smartphones and digital scanning tools, QR codes provide a
seamless bridge between the physical and digital worlds.
Objectives
Core Functionality: Build a Python script capable of generating
QR codes from user-provided data (e.g., text, URLs).
Customization: Provide options to customize QR code size,
border, and color to meet diverse user requirements.
Error Handling: Implement error correction to maintain QR code
functionality even under partial damage or distortion.
Output Management: Enable saving generated QR codes as image
files for easy sharing and printing.
Scalability: Design a modular codebase to facilitate future
enhancements, such as GUI development or batch processing.
Development Phases
Requirement Analysis:
Write the core functionality using the qrcode library for QR code
creation.
Integrate customization options for size, border, and colors.
Implement a user-friendly command-line interface (CLI).
Testing and Debugging:
Release the tool for real-world use and gather user feedback.
Document the code and provide usage instructions for users.
Future Enhancements
Add a graphical user interface (GUI) for ease of use.
Support batch QR code generation.
Enable embedding logos or branding into QR codes.
Integrate analytics to track code usage statistics.
This structured approach ensures the project meets its
objectives while laying a foundation for scalability and
adaptability to future requirements.
CHAPTER-4
DesigningtheSystem:
System Architecture
The system consists of three main modules:
Testing Approach
Unit Testing
Evaluate the user interface (CLI) for clarity and ease of use.
Gather feedback from users to identify potential improvements.
Test Scenarios
Normal Input Case
except Exception as e:
print(f"An error occurred: {e}")
# Main program
if _name_ == "_main_":
print("=== QR Code Generator ===")
# Collect user inputs
data = input("Enter the text or URL to encode: ").strip()
filename = input("Enter the output filename (default: 'qrcode.png'):
").strip() or "qrcode.png"
try:
box_size = int(input("Enter the box size (default: 10): ").strip() or 10)
border = int(input("Enter the border size (default: 4): ").strip() or 4)
except ValueError:
print("Invalid size input! Using default values for box size and border.")
box_size, border = 10, 4
5. Mobile Application
7. Multi-language Support
Current Limitation: The program is currently designed for
English-speaking users.